text-abstract
Version:
Change veryLongStrings to veryLon...
29 lines (19 loc) • 539 B
Markdown
# text-abstract


Module to change veryLongStrings to veryLon...
## Install
```
npm install text-abstract
```
## Usage
```js
const textAbstract = require("text-abstract");
```
```js
const veryLongString = hippopotomonstrosesquippedaliophobia;
const length = 5
const shortString = textAbstract(veryLongString, length);
console.log(shortString);
//-> hippo...
```