newline

0.0.3 • Public • Published

newline Build Status

Install

Install with npm

npm install --save newline

Usage

// Detects the line ending used in the string source and returns "CR", "LF" or "CRLF"
newline.detect(source);
 
var newSource = newline.set(source, "LF"); // Sets the source to the specified line endings

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    19,673
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    19,673

Package Sidebar

Install

npm i newline

Weekly Downloads

6,247

Version

0.0.3

License

Artistic-2.0

Last publish

Collaborators

  • danielchatfield