Package Exports
- just-truncate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (just-truncate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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)'