string-length alternatives and similar modules
Based on the "Text" category.
Alternatively, view string-length alternatives based on common mentions on social networks and blogs.
-
i18n-node
Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates. -
StegCloak
Hide secrets with invisible characters in plain text securely using passwords ๐ง๐ปโโ๏ธโญ
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of string-length or a related project?
README
string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
String#length
erroneously counts astral symbols as two characters.
Install
$ npm install string-length
Usage
const stringLength = require('string-length');
'๐ด'.length;
//=> 2
stringLength('๐ด');
//=> 1
stringLength('\u001B[1municorn\u001B[22m');
//=> 7
Related
- string-length-cli - CLI for this module
- string-width - Get visual width of a string
Get professional support for this package with a Tidelift subscription Tidelift helps make open source sustainable for maintainers while giving companiesassurances about security, maintenance, and licensing for their dependencies.