sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆166Updated 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☆503Updated 2 weeks ago
- Find the root directory of a Node.js project or npm package☆246Updated 3 months ago
- Read a package.json file☆171Updated last year
- Get metadata of a package from the npm registry☆244Updated last year
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆241Updated last month
- Finds the common standard cache directory☆158Updated 5 months ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated last week
- Read the closest package.json file☆267Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆124Updated last week
- Strip leading whitespace from each line in a string☆142Updated last week
- Find the closest package.json file☆165Updated 3 months ago
- Get a random temporary file or directory path☆436Updated 2 years ago
- Detect the indentation of code☆197Updated this week
- Randomize the order of items in an array☆106Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆128Updated last week
- Get the latest version of an npm package☆176Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 2 years ago
- Sort the keys of an object☆105Updated 3 weeks ago
- Move a file - Even works across devices☆202Updated last year
- Check if your package was installed globally☆70Updated last year
- normalizes package metadata, typically found in package.json file.☆203Updated this week
- Toggle the CLI cursor☆112Updated last year
- Extends minimatch.match() with support for multiple patterns☆305Updated last year
- Convert a value to an array☆130Updated 3 years ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆353Updated 10 months 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 2 months ago
- Check if a value is a plain object☆102Updated last year
- Get stdin as a string or buffer☆340Updated last year
- Walk through a folder and figure out what goes in an npm package☆113Updated last month