Detect the dominant newline character of a string
☆56Sep 18, 2026Updated last month
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 last month
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Lowercase the keys of an object☆42Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated last month
- Check if a value is an object☆42Sep 18, 2026Updated last month
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated last month
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated last month
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Strip the final newline character from a string/buffer☆38Sep 18, 2026Updated last month
- Get the PATH environment variable key cross-platform☆46Sep 18, 2026Updated last month
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last month
- Trim newlines from the start and/or end of a string☆49Sep 18, 2026Updated last month
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Check if a file path is a binary file☆50Sep 18, 2026Updated last month
- 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 last month
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- Regular expression for matching reserved filename characters☆53Oct 7, 2026Updated last month
- 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.
- Modify the values of an object☆28Sep 18, 2026Updated last month
- Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Ex…☆23Feb 27, 2017Updated 9 years ago
- Detect the indentation of code☆199Sep 18, 2026Updated last month
- Check if something is a generator function☆24Sep 18, 2026Updated last month
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- Call the given method on each value in the given object.☆21Mar 14, 2023Updated 3 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Sep 18, 2026Updated last month
- Lax URL parsing with support for protocol-less URLs and IPs☆54Sep 18, 2026Updated last month
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated last month
- 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.
- Return true if the file is (or the file path has) a dotfile.☆14May 30, 2017Updated 9 years ago
- Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.☆14Sep 25, 2016Updated 10 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 18, 2026Updated last month
- Answers the question: "can this value have keys?". Returns true if a value is any of the object types: array, regexp, plain object, funct…☆19Aug 20, 2021Updated 5 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Returns an object with the base path and the actual pattern from a glob.☆17Apr 12, 2017Updated 9 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 4 years ago
Are these results useful?