Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@fiquu/shorten

1.0.3 • Public • Published

@fiquu/shorten

Build Status GitHub GitHub last commit npm (scoped) npm

Shortens a string (truncate) 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 https://fiquu.github.io/shorten/ for more info and options.

Install

npm i @fiquu/shorten

DownloadsWeekly Downloads

85

Version

1.0.3

License

MIT

Unpacked Size

9.92 kB

Total Files

9

Last publish

Collaborators

  • avatar