plotly-icons
Version:
set of plotly icons
32 lines (18 loc) • 682 B
Markdown
> Get the real length of a string - by correctly counting astral symbols and ignoring [ansi escape codes](https://github.com/sindresorhus/strip-ansi)
`String
```
$ npm install --save string-length
```
```js
'🐴'.length;
//=> 2
stringLength('🐴');
//=> 1
stringLength('\u001b[1municorn\u001b[22m');
//=> 7
```
MIT © [Sindre Sorhus](http://sindresorhus.com)