Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stpettersens/gulp-dos2unix-js
Gulp plug-in to convert DOS to Unix line endings with pure JS module.
https://github.com/stpettersens/gulp-dos2unix-js
Last synced: about 1 month ago
JSON representation
Gulp plug-in to convert DOS to Unix line endings with pure JS module.
- Host: GitHub
- URL: https://github.com/stpettersens/gulp-dos2unix-js
- Owner: stpettersens
- License: mit
- Created: 2017-09-15T15:32:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T15:59:15.000Z (over 7 years ago)
- Last Synced: 2024-04-26T17:22:32.442Z (8 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### gulp-dos2unix
> :tropical_drink: Gulp plug-in to convert DOS (\r\n) to Unix (\n) line endings using pure JS module.[![Build Status](https://travis-ci.org/stpettersens/gulp-dos2unix-js.png?branch=master)](https://travis-ci.org/stpettersens/gulp-dos2unix-js)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
[![npm version](https://badge.fury.io/js/gulp-dos2unix-js.svg)](http://npmjs.com/package/gulp-dos2unix-js)
[![Dependency Status](https://david-dm.org/stpettersens/gulp-dos2unix-js.png?theme=shields.io)](https://david-dm.org/stpettersens/gulp-dos2unix-js) [![Development Dependency Status](https://david-dm.org/stpettersens/gulp-dos2unix-js/dev-status.png?theme=shields.io)](https://david-dm.org/stpettersens/gulp-dos2unix-js#info=devDependencies)##### Install:
$ npm install --save-dev gulp-dos2unix-js
##### Usage:
```js
'use strict'
const gulp = require('gulp')
const dos2unix = require('gulp-dos2unix-js')gulp.task('default', function () {
return gulp.src(['README.md', 'LICENSE'])
.pipe(dos2unix()) // This defaults to {feedback: false, write: false}
.pipe(gulp.dest('out'))
})
```##### Options:
Omittable options object with following allowable parameters
(same as [ssp-dos2unix-js](http://github.com/stpettersens/ssp-dos2unix-js)):* `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.