Files
login/node_modules/string-length/index.js
Rakesh Kumar 807bb60301 Update build files and add node_modules (#54)
* update build files

* add node_modules
2020-09-23 12:15:33 +05:30

10 lines
305 B
JavaScript

'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;