sindresorhus / string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
☆162Updated 4 months ago
Related projects ⓘ
Alternatives and complementary repositories for string-length
- Get the visual width of a string - the number of columns required to display it☆479Updated 4 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆107Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Find the closest package.json file☆159Updated last year
- Convert a value to an array☆131Updated 3 years ago
- Read the closest package.json file☆258Updated last year
- Detect the indentation of code☆196Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 3 weeks ago
- Get a stream as a string, Buffer, ArrayBuffer or array☆341Updated 3 weeks ago
- Finds the common standard cache directory☆151Updated 9 months ago
- Check if a value is a plain object☆102Updated 6 months ago
- Like which(1) unix command. Find the first instance of an executable in the PATH.☆330Updated last month
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated last year
- Get the gzipped size of a string or buffer☆171Updated 2 years ago
- Sort the keys of an object☆101Updated 2 months ago
- Get stdin as a string or buffer☆337Updated last year
- Get a random temporary file path☆79Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Read a package.json file☆166Updated last year
- Check if your package was installed globally☆70Updated last year
- Get the real path of the system temp directory☆82Updated 2 years ago
- Start a promise chain☆57Updated 3 years ago
- Fast lexer to extract named exports via analysis from CommonJS modules☆226Updated 2 months ago
- Find the root directory of a Node.js project or npm package☆235Updated last year
- Improved typeof detection for node.js and the browser.☆129Updated 3 months ago
- Toggle the CLI cursor☆103Updated 3 months ago
- Move a file - Even works across devices☆198Updated last year
- Make a function mimic another one☆91Updated 3 weeks ago
- Strip leading whitespace from each line in a string☆135Updated 3 years ago