gulp-dos2unix

1.0.1 • Public • Published

gulp-dos2unix

🍹 Gulp plug-in to convert DOS (\r\n) to Unix (\n) line endings.

Build Status js-standard-style npm version Dependency Status Development Dependency Status

Install:
$ npm install --save-dev gulp-dos2unix
Usage:
'use strict'
const gulp = require('gulp')
const dos2unix = require('gulp-dos2unix')
 
gulp.task('default', function () {
  return gulp.src(['README.md', 'LICENSE'])
  .pipe(dos2unix()) // This defaults to {native: false, feedback: false, write: false}
  .pipe(gulp.dest('out'))
})
Options:

Omittable options object with following allowable parameters (same as ssp-dos2unix):

  • 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 pipe through to copy.

All options are false if omitted.

Package Sidebar

Install

npm i gulp-dos2unix

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • stpettersens