1.1.2 • Published 2 months ago

ansi-truncate v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

ANSI Truncate

A tiny function for truncating a string that may contain ANSI escape sequences.

Install

npm install --save ansi-truncate

Usage

import colors from 'tiny-colors';
import truncate from 'ansi-truncate';

truncate ( colors.red ( 'foo' ), 2 ); // => Same as: colors.red ( 'f…' );

License

MIT © Fabio Spampinato

1.1.1

2 months ago

1.1.2

2 months ago

1.1.0

2 months ago

1.0.1

2 years ago

1.0.0

2 years ago