# gulp-line-ending-corrector

> Gulp Plugin for Line Ending Corrector (A utility that makes sure your files have consistent line endings)

Latest version **1.0.3** (published 2018-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-line-ending-corrector
pnpm add gulp-line-ending-corrector
yarn add gulp-line-ending-corrector
bun add gulp-line-ending-corrector
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-08-27 |
| First published | 2015-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sayem Shafayet |
| Maintainers | ishafayet |
| Keywords | Utility, Line, gulp, gulpplugin, plugin, Ending, CRLF, LF, Linefeed, Newline |

## Links

- npm: https://www.npmjs.com/package/gulp-line-ending-corrector
- Repository: https://github.com/iShafayet/gulp-line-ending-corrector
- Issues: https://github.com/iShafayet/gulp-line-ending-corrector/issues
- npm.io page: https://npm.io/package/gulp-line-ending-corrector

## Dependencies (4)

- [through2](https://npm.io/package/through2.md) ^2.0.0
- [coffeescript](https://npm.io/package/coffeescript.md) ^2.0.3
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1
- [line-ending-corrector](https://npm.io/package/line-ending-corrector.md) ^1.0.1

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-08-27
- 1.0.2 — 2017-12-06
- 1.0.1 — 2015-10-04
- 1.0.0 — 2015-10-04

## README

# gulp-line-ending-corrector

Gulp Plugin for Line Ending Corrector (A utility that makes sure your files have consistent line endings) 

# about line-editing-corrector

It converts all those pesky `\r\n` (a.k.a `CRLF`) line endings in Microsoft Windows operating systems into the more commonly used and recognized `\n` (a.k.a `LF`). Though it lets you do the opposite as well ( converting `LF` to `CRLF` ). It supports `\r` (a.k.a `CR`) as well for the sake of completion.

You should definitely have this in your build process especially if someone in your team works from a non UNIX system.

[View the repo here](https://github.com/iShafayet/line-ending-corrector)

# Installation

For using programmatically

```bash
[sudo] npm install gulp-line-ending-corrector
```

# Usage

requiring it. the lec variable itself is a function.

```node
lec = require 'gulp-line-ending-corrector'
```

simplest version

```node
.pipe(lec())
```

with all options

```node
.pipe(lec({verbose:true, eolc: 'LF', encoding:'utf8'}))
```

## Options

`eolc`
Desired End of Line character. can be `CR` (`\r`), `LF`(`\n`) (Default), `CRLF`(`\r\n`)

`encoding`
Any meaningful encoding that nodejs supports. Default `utf8`. It is advisable to use `utf8` since others are not tested by the devs.

# Troubleshooting

1. If you need to ignore binary files, take a look at this - https://github.com/iShafayet/gulp-line-ending-corrector/issues/2#issuecomment-392745133

# Contributing

We actively check for issues even for the least used repositories (unless explicitly abandoned). All of our opensource repositories are being used in commercial projects by teamO4 or bbsenterprise. So, it is very likely that we will sort out important issues not long after they are posted.

Please create a github issue if you find a bug or have a feature request.

Pull requests are always welcome for any of our public repos.

---
_Source: https://npm.io/package/gulp-line-ending-corrector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
