# dots

> Truncate string

Latest version **0.1.0** (published 2016-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install dots
pnpm add dots
yarn add dots
bun add dots
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-03-10 |
| First published | 2014-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | string, str, truncate |

## Links

- npm: https://www.npmjs.com/package/dots
- Repository: https://github.com/sindresorhus/dots
- Issues: https://github.com/sindresorhus/dots/issues
- npm.io page: https://npm.io/package/dots

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-03-10
- 0.0.1 — 2014-06-12

## README

# dots [![Build Status](https://travis-ci.org/sindresorhus/dots.svg?branch=master)](https://travis-ci.org/sindresorhus/dots)

> Truncate string


## Install

```
$ npm install --save dots
```


## Usage

```js
const dots = require('dots');

dots('unicorn', 4);
//=> 'uni…'
```


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

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