Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

just-truncate

1.1.0 • Public • Published

just-truncate

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

  truncate('when shall we three meet again', 9); // 'when s...'
  truncate('when shall we three meet again', 10, ' (etc)'); // 'when (etc)'
  truncate('when shall we', 15,); // 'when shall we'
  truncate('when shall we', 15, '(more)'); // 'when shall we'
  truncate('when shall we', 10, ' (etc etc etc)'); // ' (etc etc etc)'

Install

npm i just-truncate

DownloadsWeekly Downloads

558

Version

1.1.0

License

MIT

Unpacked Size

2.59 kB

Total Files

4

Last publish

Collaborators

  • avatar