sindresorhus / strip-final-newlineLinks
Strip the final newline character from a string/buffer
☆36Updated last year
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
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- Gracefully restore the CLI cursor on exit☆39Updated last year
- Check if a string matches the name of a Node.js builtin module☆61Updated 8 months ago
- Lowercase the keys of an object☆40Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated last month
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆65Updated last month
- Wait for a specified number of promises to be fulfilled☆38Updated last month
- Get the version of a binary in semver format☆41Updated last year
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Detect the dominant newline character of a string☆56Updated 2 years ago
- ES2015 Number.isNaN() ponyfill☆28Updated last year
- Regular expression for matching reserved filename characters☆51Updated last month
- Simple wildcard matching☆34Updated last month
- Get metadata on the default editor or a specific editor☆53Updated last month
- Create an array with values that are present in the first input array but not additional ones☆40Updated 4 years ago
- Check if a value is a regular expression☆25Updated 4 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Get the path of the caller module☆66Updated 4 years ago
- fs read and write streams based on minipass☆20Updated last week
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Check if a Buffer/Uint8Array is a GIF image☆29Updated 3 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated last month
- Make a function mimic another one☆96Updated last year
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Updated 4 years ago
- Modern Buffer API polyfill without footguns☆26Updated 4 years ago