string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
$
npm install string-lengthOfficial docs outline
Extra Credit builds an outline of string-length's docs the first time your work uses it. Until then, start at the official documentation.
More in npm packages
All 9,484-
@babel/plugin-syntax-import-meta Allow parsing of import.meta
-
validate-npm-package-name Give me a string and I'll tell you if it's a valid npm package name
-
synckit Perform async work synchronously in Node.js using `worker_threads` with first-class TypeScript support.
-
msgpackr Ultra-fast MessagePack implementation with extensions for records and structured cloning
-
mdast-util-gfm-strikethrough mdast extension to parse and serialize GFM strikethrough
-
jest-resolve
-
micromark-extension-gfm-autolink-literal micromark extension to support GFM autolink literals
-
webpack-virtual-modules Webpack Virtual Modules
-
ast-types-flow Flow types for the Javascript AST
-
@webassemblyjs/ast AST utils for webassemblyjs
-
bser JavaScript implementation of the BSER Binary Serialization
-
check-error Error comparison and information related utility for node and the browser