1.0.7 • Published 3 years ago

@fiquu/shorten v1.0.7

Weekly downloads
32
License
MIT
Repository
github
Last release
3 years ago

@fiquu/shorten

Build Status GitHub GitHub last commit npm (scoped) npm

Dependency-free and configurable tool to shorten (truncate) a string keeping whole words by default.

Installation

npm i @fiquu/shorten

Usage

import shorten from `@fiquu/shorten`;

const short = shorten('Some long string to shorten with many possible words to split into.');
// 'Some long string to shorten with many possible...'

Documentation

See the documentaion page for more info and options.

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago