UNPKG
bs-ajv
Version:
latest (1.0.1)
1.1.0
1.0.1
1.0.0
BucklesScript bindings to Ajv (Another JSON Validator)
github.com/scull7/bs-ajv
scull7/bs-ajv
bs-ajv
/
node_modules.lol
/
string-length
/
index.js
6 lines
(4 loc)
•
180 B
JavaScript
View Raw
1
2
3
4
5
6
'use strict'
;
const
stripAnsi =
require
(
'strip-ansi'
);
const
astralRegex =
require
(
'astral-regex'
);
module
.
exports
=
input
=>
stripAnsi
(input).
replace
(
astralRegex
(),
' '
).
length
;