Detects the dominant newline character in a string or buffer. This package is essential for ensuring consistent line endings across different operating systems and environments. It helps standardize text processing, configuration file parsing, and other tasks where newline character consistency is critical. detect-newline is lightweight, fast, and accurately identifies the prevalent newline character (LF, CR, or CRLF), simplifying cross-platform text manipulation in Node.js and JavaScript projects.