Detect the dominant newline character of a string
☆55Sep 23, 2023Updated 2 years ago
Alternatives and similar repositories for detect-newline
Users that are interested in detect-newline are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 5 years ago
- Check if a value is an object☆42Apr 16, 2021Updated 5 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 11 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 2 months ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 7 months ago
- Get the first path that exists on disk of multiple paths☆64Sep 15, 2025Updated 7 months ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Node's default require extensions as a separate module☆11Oct 27, 2022Updated 3 years ago
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 7 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 5 months ago
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Detect the indentation of code☆199Feb 2, 2026Updated 2 months ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 5 years ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Exclude certain items from an array☆24Jun 13, 2025Updated 10 months ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 7 months ago
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 2 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated 10 months ago
- Check if something is a generator function☆24Jul 8, 2022Updated 3 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 2 months ago
- Get the fullname of the current user☆48Sep 1, 2023Updated 2 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 5 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated 2 years ago
- list of SPDX standard license exceptions☆16Apr 25, 2024Updated last year
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Check if a string is HTML☆95Sep 9, 2025Updated 7 months ago
- Get user info from a GitHub username☆25Oct 14, 2021Updated 4 years ago