@fiquu/shorten
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@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.

Package Sidebar

Install

npm i @fiquu/shorten

Weekly Downloads

35

Version

1.0.7

License

MIT

Unpacked Size

9.99 kB

Total Files

9

Last publish

Collaborators

  • stgogm