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

Package Sidebar

Install

npm i trunc

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • vitalbone