GitShow/sindresorhus/detect-newline
sindresorhus

detect-newline

Detect the dominant newline character of a string

by sindresorhus
Star on GitHubForknpm

JavaScript

56 stars6 forks9 contributorsQuiet · 2y agoSince 2014v4.0.1MIT

Meet the team

See all 9 on GitHub →
sindresorhus
sindresorhus30 contributions
kevva
kevva2 contributions
blakeembrey
blakeembrey1 contribution
BendingBender
BendingBender1 contribution
sonicdoe
sonicdoe1 contribution
MaximDevoir
MaximDevoir1 contribution
Richienb
Richienb1 contribution
ntwb
ntwb1 contribution

Languages

View on GitHub →
JavaScript71.7%
TypeScript28.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
silverwind
Clarify return values in docsMergedPR

Fixes: #11

silverwind · 2y ago
silverwind
Return `undefined` on equal counts?ClosedIssue

I noticed the module has a bias towards LF, e.g. when a string contains a equal amount of LF and CRLF, it will return LF. The module's description says it returns the "dominant" variant, but when they are equal, none dominate and I think it would be more correct to return .

silverwind · 2y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/detect-newline. Description: Detect the dominant newline character of a string Stars: 56, Forks: 6. Primary language: JavaScript. Languages: JavaScript (71.7%), TypeScript (28.3%). License: MIT. Latest release: v4.0.1 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 85%. Top contributors: sindresorhus, kevva, blakeembrey, BendingBender, sonicdoe, MaximDevoir, Richienb, ntwb, silverwind.

·@ofershap

Replace github.com with gitshow.dev