detect-newline
npmv4.0.1TypeScriptDetect the dominant newline character of a string
Overview
detect-newline is an npm package that detect the dominant newline character of a string. The latest version is 4.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need detect the dominant newline character of a string and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of detect-newline.
Dependencies
Dev (3)
Used by
Popular packages that depend on detect-newline.
Alternatives to detect-newline
Get the line and column number of a specific character in a string
Wrap words to a specified length.
Convert a string index to its line and column position
Determine the East Asian Width of a Unicode character
Get the visual width of a string - the number of columns required to display it
Regular expression for matching a shebang line
Get callsites from the V8 stack trace API
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 4.0.1latest | 2 years ago | MIT |
| 4.0.0 | 4 years ago | MIT |
| 3.1.0 | 6 years ago | MIT |
| 3.0.0 | 7 years ago | MIT |
| 2.1.0 | 10 years ago | MIT |
| 2.0.1 | 10 years ago | MIT |
| 2.0.0 | 10 years ago | MIT |
| 1.0.3 | 11 years ago | MIT |
| 1.0.2 | 11 years ago | MIT |
| 1.0.1 | 12 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.1.1 | 12 years ago | MIT |
| 0.1.0 | 12 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install detect-newline?
Run `npm install detect-newline` to add detect-newline to your npm project.
What license is detect-newline released under?
detect-newline is distributed under the MIT license.
How popular is detect-newline?
detect-newline has approximately 0 downloads per week and 1 known dependent packages.