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:
- Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes☆167Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆142Updated 3 weeks ago
- Wordwrap a string with ANSI escape codes☆128Updated last month
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Make a function mimic another one☆96Updated 11 months ago
- Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible☆85Updated 2 years ago
- fs.readdir() with filter, recursion, absolute paths, promises, streams, and more!☆86Updated 5 years ago
- Create a hash for file revving☆106Updated last year
- Check if a string or buffer is SVG☆141Updated 3 months ago
- node module to check if a command-line command exists☆147Updated 2 years ago
- Detect the indentation of code☆197Updated 3 weeks ago
- Regular expression for matching reserved filename characters☆50Updated 3 weeks ago
- Read a chunk from a file☆124Updated last year
- Set of utilities to work with JSON / JSON5 documents.☆72Updated 5 years ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆65Updated 2 months ago
- This repository has been archived, use Enquirer instead.☆44Updated 6 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆62Updated last year
- Parse milliseconds into an object☆120Updated last year
- Tokenizes a string that represents a regular expression.☆96Updated 2 years ago
- Filter object keys and values into a new object☆104Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated last month
- Check if the process is running with elevated privileges☆42Updated 4 years ago
- Convert PNG to ICO in memory☆137Updated 5 years ago
- Reliably get the terminal window size☆144Updated last year
- Levenshtein edit distance☆72Updated 2 years ago
- Check if a string is a valid filename☆62Updated 4 years ago
- Extract JavaScript code comments from a string or glob of files.☆50Updated 6 years ago