sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated last year
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☆492Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Finds the common standard cache directory☆158Updated 4 months ago
- Find the root directory of a Node.js project or npm package☆246Updated 2 months ago
- Detect the indentation of code☆196Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 2 years ago
- Find the closest package.json file☆164Updated 2 months ago
- Sort the keys of an object☆104Updated 11 months ago
- Get metadata of a package from the npm registry☆242Updated last year
- Get a stream as a string, Buffer, ArrayBuffer or array☆352Updated 9 months ago
- Toggle the CLI cursor☆110Updated last year
- Get a random temporary file or directory path☆435Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆123Updated 5 months ago
- Write files in an atomic fashion w/configurable ownership☆238Updated last month
- Truncate a string to a specific width in the terminal☆87Updated last year
- Wordwrap a string with ANSI escape codes☆126Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated 9 months ago
- Randomize the order of items in an array☆105Updated 2 years ago
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- Read the closest package.json file☆267Updated last year
- Move a file - Even works across devices☆201Updated last year
- Simple benchmark for diffrent htmlparsers using real-life data☆103Updated 2 weeks ago
- Read a package.json file☆169Updated last year
- Recursively read a directory☆63Updated 7 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Get the real path of the system temp directory☆82Updated 2 years ago
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆95Updated 2 years ago
- Monorepo for NodeLib libraries☆75Updated 7 months ago