parshap / truncate-utf8-bytes
Truncate string to length in bytes
☆15Updated last year
Alternatives and similar repositories for truncate-utf8-bytes:
Users that are interested in truncate-utf8-bytes are comparing it to the libraries listed below
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆62Updated this week
- Detect the dominant newline character of a string☆55Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- An ES6 template tag which escapes parameters for interpolation into shell commands☆15Updated 2 years ago
- An ESnext spec-compliant `Array.prototype.flat` shim/polyfill/replacement that works as far down as ES3.☆32Updated 4 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Maps lines and columns to character offsets and back.☆25Updated last year
- Make a function mimic another one☆94Updated 6 months ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- Get the auth token set for an npm registry☆35Updated 2 months ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated 11 months ago
- Check if a file path is a binary file☆44Updated 11 months ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- Check whether a request can be retried based on the `error.code`☆80Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Pack entire packages and application into portable scripts☆28Updated 2 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆68Updated 3 years ago
- utility to create a report for a vfile☆38Updated 3 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆59Updated 9 months ago
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Check if a string is a valid filename☆61Updated 3 years ago
- Rollup plugin to automatically preserve shebangs in entry modules.☆48Updated last year
- A collection of Regenerate sets for Unicode various properties.☆19Updated 7 months ago
- Get the local downloads folder, for all major platforms☆33Updated 9 months ago
- Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes☆165Updated 10 months ago
- Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible☆85Updated last year