Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dots

sindresorhus260MIT0.1.0

Truncate string

string, str, truncate

readme

dots Build Status

Truncate string

Install

$ npm install --save dots

Usage

const dots = require('dots');

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

License

MIT © Sindre Sorhus