sindresorhus / normalize-newline
Normalize the newline characters in a string to `\n`
☆30Updated 2 years ago
Related projects ⓘ
Alternatives and complementary repositories for normalize-newline
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Repeat a string - fast☆34Updated 3 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the number of days in a month☆27Updated 3 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Modify the values of an object☆28Updated 3 years ago
- Create a revved file path☆20Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Check if a value is a Blob☆23Updated last year
- Convert an Observable to a Promise☆47Updated last year
- Simple `setImmediate` shim☆28Updated 8 months ago
- Similar to String#trim() but removes only whitespace on the right☆21Updated 3 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Check if a number is in a given range☆21Updated 3 years ago
- Lowercase the keys of an object☆40Updated last year
- ES2015 Number.MAX_SAFE_INTEGER ponyfill☆17Updated last year
- Get an array of parent directories including itself☆27Updated last year
- Sort an array of numbers☆16Updated 3 years ago
- ES2015 Number.isNaN() ponyfill☆28Updated 6 months ago
- Truncate a URL to a specific length☆61Updated 3 years ago
- Check if a value is a function