1.0.1 • Published 8 years ago

ssp-dos2unix v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

ssp-dos2unix

:end: A dos2unix implementation.

Build Status js-standard-style npm version

Install:
$ npm install ssp-dos2unix
Usage:
'use strict'
const dos2unix = require('dos2unix').dos2unix

let converted = dos2unix('README.md', {native: false, feedback: true, writable: false})
console.log(converted) // Returned text as string without any carriage returns (\r).
// If you use writable as true, returns 0 instead of text.
Options:

Omittable options object with following allowable parameters:

  • native (Boolean) - Force use of native module (cannot be used with write: false).
  • feedback (Boolean) - Display feedback ("File already has UNIX line endings...").
  • writable (Boolean) - Write change to file rather than return as string.

All options are false if omitted except for writable which is true.