Skip to content

kevinmoturi/truncate-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published