sindresorhus / string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated 7 months ago
Alternatives and similar repositories for string-length:
Users that are interested in string-length are comparing it to the libraries listed below
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆108Updated 2 years ago
- Get the visual width of a string - the number of columns required to display it☆485Updated 7 months ago
- Strip leading whitespace from each line in a string☆136Updated 3 years ago
- Find the closest package.json file☆162Updated last year
- Toggle the CLI cursor☆106Updated 6 months ago
- Load config from .{product}rc.{json,yml,js} file☆62Updated last year
- Finds the common standard cache directory☆158Updated 11 months ago
- Monorepo for NodeLib libraries☆70Updated last month
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Truncate a string to a specific width in the terminal☆86Updated last year
- Check if a value is a plain object☆102Updated 9 months ago
- Simple benchmark for diffrent htmlparsers using real-life data☆100Updated 3 weeks ago
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆345Updated 3 months ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Read the closest package.json file☆266Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 3 months ago
- when you want to fire an event no matter how a process exits.☆189Updated last year
- Read a package.json file☆166Updated last year
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Start a promise chain☆58Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 8 months ago
- Fast CSS Selectors API Engine☆119Updated 2 weeks ago
- Detect the indentation of code☆196Updated last year
- Parse and stringify JSON with comments. It will retain comments even when after saved!☆164Updated 6 months ago
- Clear a module from the cache☆181Updated 3 years ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆238Updated 2 years ago
- Create a hash for file revving☆105Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago