sindresorhus / strip-final-newlineLinks
Strip the final newline character from a string/buffer
☆36Updated 11 months ago
Alternatives and similar repositories for strip-final-newline
Users that are interested in strip-final-newline are comparing it to the libraries listed below
Sorting:
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Gracefully restore the CLI cursor on exit☆39Updated last year
- Check if a Buffer/Uint8Array is a GIF image☆29Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Updated 4 years ago
- Get the version of a binary in semver format☆41Updated last year
- fs read and write streams based on minipass☆20Updated last year
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Check if your code is running as an npm or yarn script☆64Updated last month
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated last year
- Clone and modify a RegExp instance☆23Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Wait for a specified number of promises to be fulfilled☆38Updated last month
- Utility method to run function either synchronously or asynchronously using the common `this.async()` style.☆25Updated 2 months ago
- Timeout HTTP/HTTPS requests☆51Updated last month
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Lowercase the keys of an object☆40Updated 2 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 3 years ago
- Check if a value is a regular expression☆25Updated 3 years ago
- ES2015 Number.isNaN() ponyfill☆28Updated last year
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆64Updated last month
- Strip UTF-8 byte order mark (BOM) from a buffer☆20Updated last year
- Modern Buffer API polyfill without footguns☆26Updated 4 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆35Updated 4 years ago
- Create a Vinyl file from an actual file☆42Updated 2 years ago
- Slice a string with ANSI escape codes☆50Updated last month