detect-newline

Detect the dominant newline character of a string

MIT License

Downloads
96.7M
Stars
54
Committers
9

Bot releases are visible (Hide)

detect-newline - Latest Release

Published by sindresorhus about 1 year ago

detect-newline -

Published by sindresorhus about 3 years ago

Breaking

  • Require Node.js 12.20 5539419
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/detect-newline/compare/v3.1.0...v4.0.0

detect-newline -

Published by sindresorhus almost 5 years ago

  • Gracefully handle non-string inputs (#9) 4fb2614

https://github.com/sindresorhus/detect-newline/compare/v3.0.0...v3.1.0

detect-newline -

Published by sindresorhus over 5 years ago

Breaking:

  • Return undefined instead of null when no newline is found 446e98c
  • Require Node.js 8 (#7) 841de59

Enhancements:

  • Add TypeScript definition (#7) 841de59

https://github.com/sindresorhus/detect-newline/compare/v2.1.0...v3.0.0