trunc

0.0.1 • Public • Published

trunc

Install

$ npm i --save trunc

Usage

import trunc from 'trunc'
 
const str = 'string theory'
 
trunc(str, 3)
// str...

API

trunc(string, value)

Truncates a string to whatever value you pass in

License

MIT © Vito Belgiorno-Zegna

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i trunc

    Weekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • vitalbone