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
- Get the visual width of a string - the number of columns required to display it☆504Updated last month
- Toggle the CLI cursor☆112Updated last year
- Check if your package was installed globally☆69Updated last year
- Find the root directory of a Node.js project or npm package☆246Updated 4 months ago
- Recursively read a directory☆63Updated 7 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last month
- Find the closest package.json file☆165Updated 4 months ago
- Strip leading whitespace from each line in a string☆142Updated last month
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 3 years ago
- Sort the keys of an object☆105Updated last month
- Read a package.json file☆170Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆124Updated last month
- Check if a value is a plain object☆103Updated last year
- Get a stream as a string, Buffer, ArrayBuffer or array☆355Updated 11 months ago
- Get metadata of a package from the npm registry☆243Updated last year
- Finds the common standard cache directory☆159Updated 6 months ago
- Easily handle defaults for your options☆75Updated last year
- Read the closest package.json file☆267Updated last year
- Get the latest version of an npm package☆175Updated last year
- Get a random temporary file or directory path☆435Updated 2 years ago
- Move a file - Even works across devices☆202Updated last year
- Monorepo for NodeLib libraries☆76Updated 9 months ago
- Walk through a folder and figure out what goes in an npm package☆114Updated 2 weeks ago
- when you want to fire an event no matter how a process exits.☆193Updated last year
- Check if a string or buffer is SVG☆141Updated 3 months ago
- Truncate a string to a specific width in the terminal☆87Updated 3 weeks ago
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆241Updated last month
- Filter object keys and values into a new object☆104Updated last year
- Let a globally installed package use a locally installed version of itself if available☆154Updated last year