https://github.com/gulp-plugin/eol
Gulp plugin to ensure consistent end of line characters.
https://github.com/gulp-plugin/eol
Last synced: 8 days ago
JSON representation
Gulp plugin to ensure consistent end of line characters.
- Host: GitHub
- URL: https://github.com/gulp-plugin/eol
- Owner: gulp-plugin
- License: mit
- Created: 2021-07-14T21:12:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T11:09:17.000Z (over 2 years ago)
- Last Synced: 2025-02-03T04:57:24.438Z (5 months ago)
- Language: TypeScript
- Size: 526 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @gulp-plugin/eol  [](https://github.com/gulp-plugin/eol/packages/)
[](https://github.com/gulp-plugin/eol/actions/workflows/node.js.yml)
[](https://coveralls.io/github/gulp-plugin/eol?branch=main) [](https://david-dm.org/gulp-plugin/eol)Gulp plugin to ensure consistent end of line characters.
## Install
`npm install --save-dev @gulp-plugin/eol`
## Usage
```typescript
const typescript = require('gulp-typescript')
const sourcemaps = require('gulp-sourcemaps')
const eol = require('gulp-plugin/eol')const project = typescript.createProject('tsconfig.json')
function build() {
src('./src/**/*.ts')
.pipe(eol({ eol: '\n' }))
.pipe(sourcemaps.init())
.pipe(project())return compiled.js
.pipe(sourcemaps.write({ sourceRoot: file => path.relative(path.join(file.cwd, file.path), file.base) }))
.pipe(dest('build/'))
}```