sindresorhus / string-lengthLinks
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆169Updated 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☆509Updated 2 months ago
- Find the closest package.json file☆166Updated 5 months ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆147Updated 2 months ago
- Strip leading whitespace from each line in a string☆143Updated last month
- Sort the keys of an object☆105Updated 3 months ago
- Check if your package was installed globally☆69Updated 2 years ago
- Get metadata of a package from the npm registry☆245Updated last year
- Toggle the CLI cursor☆112Updated last year
- Detect the indentation of code☆200Updated 2 months ago
- Wordwrap a string with ANSI escape codes☆130Updated 2 months ago
- Get the latest version of an npm package☆175Updated last year
- Find the root directory of a Node.js project or npm package☆248Updated 5 months ago
- Finds the common standard cache directory☆160Updated 7 months ago
- Generate a markdown (GFM) table☆294Updated last year
- Get a stream as a string, Buffer, ArrayBuffer or array☆357Updated last year
- Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow☆241Updated 3 months ago
- Move a file - Even works across devices☆203Updated 2 years ago
- Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has …☆242Updated 10 months ago
- Read the closest package.json file☆267Updated 3 weeks ago
- Clear a module from the cache☆184Updated 4 years ago
- Tokenizes a string that represents a regular expression.☆96Updated last week
- Recursively read a directory☆63Updated 8 years ago
- Read a package.json file☆173Updated 3 weeks ago
- Truncate a string to a specific width in the terminal☆87Updated last month
- Filter object keys and values into a new object☆105Updated last year
- Get the real path of the system temp directory☆83Updated 3 years ago
- Check if a value is a plain object☆103Updated last year
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆111Updated 3 years ago
- Get a random temporary file or directory path☆438Updated 2 years ago
- Walk through a folder and figure out what goes in an npm package☆115Updated 3 weeks ago