Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

text-abstract

2.0.0 • Public • Published

text-abstract

npm license

Module to change veryLongStrings to veryLon...

Install

npm install text-abstract

Usage

const textAbstract = require("text-abstract");
 
const veryLongString = hippopotomonstrosesquippedaliophobia;
const length = 5
 
const shortString = textAbstract(veryLongString, length);
 
console.log(shortString);
 
//-> hippo...

Install

npm i text-abstract

DownloadsWeekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

2.42 kB

Total Files

4

Last publish

Collaborators

  • avatar