sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆167Updated 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:
- Wordwrap a string with ANSI escape codes☆129Updated last month
- Sort the keys of an object☆105Updated 2 months ago
- Check if your package was installed globally☆69Updated last year
- Finds the common standard cache directory☆159Updated 6 months ago
- Get the visual width of a string - the number of columns required to display it☆505Updated 2 months ago
- Toggle the CLI cursor☆112Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 3 years ago
- Detect the indentation of code☆197Updated last month
- Find the root directory of a Node.js project or npm package☆246Updated 4 months ago
- Get metadata of a package from the npm registry☆245Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆124Updated last month
- Get the latest version of an npm package☆175Updated last year
- Walk through a folder and figure out what goes in an npm package☆114Updated last week
- Tokenizes a string that represents a regular expression.☆96Updated 2 years ago
- Strip leading whitespace from each line in a string☆142Updated 3 weeks ago
- Find the closest package.json file☆165Updated 4 months ago
- Ponyfill for Error#captureStackTrace☆61Updated 3 years ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆167Updated last week
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated last month
- Read a package.json file☆173Updated last year
- when you want to fire an event no matter how a process exits.☆193Updated last week
- Recursively read a directory☆63Updated 7 years ago
- Monorepo for NodeLib libraries☆76Updated 9 months ago
- Get a random temporary file path☆80Updated 2 years ago
- Read the closest package.json file☆267Updated last year
- A proxy to `path`, replacing `\` with `/` for all results & methods to add, change, default, trim file extensions.☆153Updated 2 years ago
- normalizes package metadata, typically found in package.json file.☆203Updated this week
- Simple benchmark for diffrent htmlparsers using real-life data☆103Updated 2 weeks ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆355Updated last year
- Indent each line in a string☆113Updated 3 years ago