crlf-helper

0.1.0 • Public • Published

crlf-helper

Build Status (Travis)

helps to detect and change line endings in node.js strings

Installation

npm install crlf-helper

Usage

var crlf = require('crlf-helper');

var content = 'content\r\nwith line break'
var lineEnding = crlf.getLineEnding();
console.log(lineEnding);
// CRLF

var contentWithNewLineEnding = crlf.setLineEnding(content, 'LF');
console.log(contentWithNewLineEnding);
// content\nwith line break

Bugs and issues

If you find a bug or issues, please create an issue at github.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    9
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i crlf-helper

Weekly Downloads

9

Version

0.1.0

License

MIT

Last publish

Collaborators

  • neoklosch