sindresorhus / normalize-newline
Normalize the newline characters in a string to `\n`
☆30Updated 2 years ago
Alternatives and similar repositories for normalize-newline:
Users that are interested in normalize-newline are comparing it to the libraries listed below
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Get bundle identifier from a bundle name (macOS): Safari → com.apple.Safari☆16Updated 3 years ago
- Modify the values of an object☆27Updated 3 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Get an array of parent directories including itself☆27Updated last year
- Create a revved file path☆21Updated 2 years ago
- Check if a value is a Blob☆22Updated last year
- Get the path to the user home directory☆13Updated 3 years ago
- Check if a path is inside another path☆37Updated 2 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Convert an Observable to a Promise☆47Updated last year
- Split a string at one or more indices