0.0.4 • Published 8 years ago
string-limit v0.0.4
string-limit
Limit string length to given <number>
and add "..." at the end if the <number>
is less that it length
Install
npm install string-limit --save
Usage
var limit = require('string-limit');
limit('Hello this is a long title', 10); // Hello this...
License
MIT