truncate-txt

1.2.0 • Public • Published

What is this ?

Used to show that words have been omitted from a quotation or to create a pause for effect, show an unfinished thought or show a trail off into silence.

Installation

npm i truncate-txt --save

Usage

...

import truncate from 'truncate-txt';

truncate('Lorem ipsum dolor sit amet, consectetur adipiscing elit', 20);

...

Options

Truncate Text supports two options which are:

  • Option 1 - string
  • Option 2 - integer (Defaults to null)

Readme

Keywords

none

Package Sidebar

Install

npm i truncate-txt

Weekly Downloads

3

Version

1.2.0

License

ISC

Unpacked Size

1.35 kB

Total Files

3

Last publish

Collaborators

  • kevo