Detect the dominant newline character of a string
☆56Sep 18, 2026Updated 2 months 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:
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated 2 months ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆38Jan 24, 2021Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated 2 months ago
- Gracefully restore the CLI cursor on exit☆44Sep 18, 2026Updated 2 months ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Lowercase the keys of an object☆43Sep 18, 2026Updated 2 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆44Jan 24, 2021Updated 5 years ago
- Check if a path is the current working directory☆23Sep 18, 2026Updated 2 months ago
- Strip the final newline character from a string/buffer☆40Sep 18, 2026Updated 2 months ago
- Get the PATH environment variable key cross-platform☆47Sep 18, 2026Updated 2 months ago
- Check if a value is an object☆42Sep 18, 2026Updated 2 months ago
- Get the first path that exists on disk of multiple paths☆66Sep 18, 2026Updated 2 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated 2 months ago
- End-to-end encrypted email - Proton Mail • AdSpecial offer: 40% Off Yearly / 80% Off First Month. All Proton services are open source and independently audited for security.
- Check if a file path is a binary file☆50Sep 18, 2026Updated 2 months ago
- Check if something is a generator function☆24Sep 18, 2026Updated 2 months ago
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated 2 months ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆52Sep 18, 2026Updated 2 months ago
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated 2 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Check if a value is a regular expression☆26Sep 18, 2026Updated 2 months ago
- Trim newlines from the start and/or end of a string☆49Sep 18, 2026Updated 2 months ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Sep 18, 2026Updated 2 months ago
- Check if a path is in the current working directory☆23Sep 18, 2026Updated 2 months ago
- Regular expression for matching reserved filename characters☆53Oct 7, 2026Updated last month
- Returns true if a string has an extglob☆25May 25, 2019Updated 7 years ago
- Modify the values of an object☆28Sep 18, 2026Updated 2 months ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 5 years ago
- Check if a path is inside another path☆42Sep 18, 2026Updated 2 months ago
- Detect the indentation of code☆199Sep 18, 2026Updated 2 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated 2 months ago
- Managed Kubernetes at scale on DigitalOcean • AdDigitalOcean Kubernetes includes the control plane, bandwidth allowance, container registry, automatic updates, and more for free.
- Call the given method on each value in the given object.☆21Mar 14, 2023Updated 3 years ago
- Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Ex…☆24Feb 27, 2017Updated 9 years ago
- Start a promise chain☆62Sep 18, 2026Updated 2 months ago
- list of SPDX standard license exceptions☆18Apr 25, 2024Updated 2 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆39Sep 18, 2026Updated 2 months ago
- Lax URL parsing with support for protocol-less URLs and IPs☆54Sep 18, 2026Updated 2 months ago
- Return true if the file is (or the file path has) a dotfile.☆14May 30, 2017Updated 9 years ago
Are these results useful?