Last 12 weeks · 0 commits
4 of 6 standards met
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.
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 .