Need private packages and team management tools?Check out npm Teams »

truncate-url

1.0.0 • Public • Published

truncate-url Build Status

Truncate a URL to a specific length

Install

$ npm install --save truncate-url

Usage

const truncateUrl = require('truncate-url');
 
truncateUrl('http://sindresorhus.com/foo/bar/baz/faz', 30);
//=> 'http://sindresorhus.com/…/faz'

License

MIT © Sindre Sorhus

Install

npm i truncate-url

DownloadsWeekly Downloads

692

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar