sindresorhus / string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆165Updated 8 months ago
Alternatives and similar repositories for string-length:
Users that are interested in string-length are comparing it to the libraries listed below
- Get the visual width of a string - the number of columns required to display it☆487Updated 8 months ago
- Get a random temporary file path☆79Updated 2 years ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆110Updated 2 years ago
- Read the closest package.json file☆266Updated last year
- Find the closest package.json file☆162Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Finds the common standard cache directory☆158Updated last year
- when you want to fire an event no matter how a process exits.☆190Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Toggle the CLI cursor☆107Updated 7 months ago
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 4 years ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆238Updated 2 years ago
- Get stdin as a string or buffer☆338Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆164Updated 4 months ago
- Read a package.json file☆165Updated last year
- Get a random temporary file or directory path☆427Updated last year
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Indent each line in a string☆113Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆123Updated last year
- normalizes package metadata, typically found in package.json file.☆198Updated 5 months ago
- Check if your package was installed globally☆70Updated last year
- Strip leading whitespace from each line in a string☆136Updated 3 years ago
- Detect the indentation of code☆196Updated last year
- Move a file - Even works across devices☆199Updated last year
- Tokenizes a string that represents a regular expression.☆94Updated last year
- Get metadata of a package from the npm registry☆240Updated 8 months ago
- Start a promise chain☆58Updated 3 years ago
- Check whether a package or organization name is available on npm☆169Updated last year
- Simple benchmark for diffrent htmlparsers using real-life data☆102Updated 3 weeks ago