chore: added updated dependencies

This commit is contained in:
SethCohen
2025-06-17 02:48:23 -04:00
parent 0559b87ee8
commit 067d2cb017
5742 changed files with 831074 additions and 37878 deletions
+19
View File
@@ -0,0 +1,19 @@
'use strict';
const stripAnsi = require('strip-ansi');
const charRegex = require('char-regex');
const stringLength = string => {
if (string === '') {
return 0;
}
const strippedString = stripAnsi(string);
if (strippedString === '') {
return 0;
}
return strippedString.match(charRegex()).length;
};
module.exports = stringLength;