# truncate-txt

> Shortens No. Of Characters In A Long Text To The Specified Number

Latest version **1.2.0** (published 2019-08-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install truncate-txt
pnpm add truncate-txt
yarn add truncate-txt
bun add truncate-txt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-08-26 |
| First published | 2019-08-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Moturi |
| Maintainers | kevo |

## Links

- npm: https://www.npmjs.com/package/truncate-txt
- Repository: https://github.com/TomKevin/truncate-text
- Homepage: https://github.com/TomKevin/truncate-text#readme
- Issues: https://github.com/TomKevin/truncate-text/issues
- npm.io page: https://npm.io/package/truncate-txt

## Recent versions

- 1.2.0 (latest) — 2019-08-26
- 1.1.0 — 2019-08-26
- 1.0.0 — 2019-08-22

## README

# 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)

---
_Source: https://npm.io/package/truncate-txt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
