sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated 11 months ago
Alternatives and similar repositories for string-length
Users that are interested in string-length are comparing it to the libraries listed below
Sorting:
- Get the visual width of a string - the number of columns required to display it☆490Updated 11 months ago
- Find the closest package.json file☆164Updated last year
- Find the root directory of a Node.js project or npm package☆244Updated last year
- Sort the keys of an object☆103Updated 9 months ago
- Move a file - Even works across devices☆199Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 7 months ago
- when you want to fire an event no matter how a process exits.☆190Updated last year
- Finds the common standard cache directory☆158Updated last month
- Truncate a string to a specific width in the terminal☆87Updated last year
- Get metadata of a package from the npm registry☆242Updated 10 months ago
- Read the closest package.json file☆268Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆110Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- Simple benchmark for diffrent htmlparsers using real-life data☆103Updated 3 weeks ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated last year
- Check if your package was installed globally☆70Updated last year
- Easily handle defaults for your options☆74Updated last year
- Detect the indentation of code☆196Updated last year
- Get the gzipped size of a string or buffer☆172Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Read a package.json file☆167Updated last year
- Check whether a package or organization name is available on npm☆170Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Create an error from multiple errors☆245Updated last year
- Wordwrap a string with ANSI escape codes☆125Updated last year
- An incremental implementation of MurmurHash3 for JavaScript☆98Updated 11 years ago
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- A static list of the Node.js builtin modules from the latest Node.js version☆122Updated 3 months ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆349Updated 7 months ago
- A proxy to `path`, replacing `\` with `/` for all results & methods to add, change, default, trim file extensions.☆153Updated 2 years ago