sindresorhus / trim-newlinesLinks
Trim newlines from the start and/or end of a string
☆48Updated 2 years ago
Alternatives and similar repositories for trim-newlines
Users that are interested in trim-newlines are comparing it to the libraries listed below
Sorting:
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Lowercase the keys of an object☆40Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆63Updated 3 weeks ago
- Get metadata on the default editor or a specific editor☆53Updated 3 weeks ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Get the version of a binary in semver format☆41Updated last year
- Strip the final newline character from a string/buffer☆36Updated 11 months ago
- Check if your code is running as an npm or yarn script☆64Updated 3 weeks ago
- Filter object keys and values into a new object☆104Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 weeks ago
- Regular expression for matching reserved filename characters☆50Updated 2 weeks ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 7 months ago
- Get the path of the parent module☆78Updated 2 weeks ago
- Detect the dominant newline character of a string☆55Updated 2 years ago
- Check if a Buffer/Uint8Array is a GIF image☆28Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Simple wildcard matching☆34Updated 2 weeks ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 3 years ago
- Split a string at one or more indices☆23Updated 4 years ago
- Mimic a Node.js HTTP response stream☆59Updated last year
- Check if a path is a file, directory, or symlink☆78Updated last year
- Gracefully restore the CLI cursor on exit☆39Updated last year
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 3 years ago
- Check if a number is in a given range☆21Updated 4 years ago
- Add XO to your project☆46Updated last year
- Check if a value is a regular expression☆24Updated 3 years ago
- Log the value/error of a promise☆26Updated 4 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year