Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f)
This commit is contained in:
commit
28ccc3db2d
13974 changed files with 2618436 additions and 0 deletions
9
node_modules/string-length/index.js
generated
vendored
Normal file
9
node_modules/string-length/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
const stripAnsi = require('strip-ansi');
|
||||
const astralRegex = require('astral-regex');
|
||||
|
||||
const stringLength = string => stripAnsi(string).replace(astralRegex(), ' ').length;
|
||||
|
||||
module.exports = stringLength;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = stringLength;
|
||||
Loading…
Add table
Add a link
Reference in a new issue