parshap / truncate-utf8-bytesLinks
Truncate string to length in bytes
☆16Updated 2 years ago
Alternatives and similar repositories for truncate-utf8-bytes
Users that are interested in truncate-utf8-bytes are comparing it to the libraries listed below
Sorting:
- Make a function mimic another one☆96Updated last year
- Wordwrap a string with ANSI escape codes☆131Updated 5 months ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible☆85Updated 2 years ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆171Updated last month
- Strip leading whitespace from each line in a string☆145Updated 3 months ago
- Recursively read a directory☆63Updated 8 years ago
- utility to create a report for a vfile☆37Updated last year
- node module to check if a command-line command exists☆147Updated 3 years ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆65Updated 6 months ago
- Check if a path exists☆155Updated 3 years ago
- Check if a string or buffer is SVG☆143Updated 7 months ago
- Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes☆170Updated 2 weeks ago
- Indent each line in a string☆115Updated 3 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Get XDG Base Directory paths☆93Updated 4 years ago
- When copying or moving files, it's common for operating systems to automatically add an increment or 'copy' to duplicate file names. This…☆22Updated 6 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 7 years ago
- This repository has been archived, use Enquirer instead.☆44Updated 7 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 4 months ago
- Generate a regex from a string or array of strings.☆60Updated 5 years ago
- Make your own error types!☆70Updated 3 years ago
- Truncate a string to a specific width in the terminal☆88Updated 3 months ago
- Offers convenient getters and setters for the fs.stat()'s `mode`☆51Updated 6 years ago
- Strip UTF-8 byte order mark (BOM) from a string☆112Updated 4 years ago
- Read a chunk from a file☆125Updated last year
- Levenshtein edit distance☆72Updated 3 years ago
- fs.readdir() with filter, recursion, absolute paths, promises, streams, and more!☆85Updated 5 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago