# add-newlines

> Add newlines to the end of files that don't yet have them

Latest version **0.2.0** (published 2017-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install add-newlines
pnpm add add-newlines
yarn add add-newlines
bun add add-newlines
```

Provides the command `addnl`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-05-14 |
| First published | 2017-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Perry Mitchell |
| Maintainers | perrymitchell |
| Keywords | newline, return, append |

## Links

- npm: https://www.npmjs.com/package/add-newlines
- Repository: https://github.com/perry-mitchell/add-newlines
- Homepage: https://github.com/perry-mitchell/add-newlines#readme
- Issues: https://github.com/perry-mitchell/add-newlines/issues
- npm.io page: https://npm.io/package/add-newlines

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.1
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [is-file](https://npm.io/package/is-file.md) ^1.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Recent versions

- 0.2.0 (latest) — 2017-05-14
- 0.1.0 — 2017-03-15

## README

# Add Newlines
Add newlines to a batch of files, if they aren't already there

[![Build Status](https://travis-ci.org/perry-mitchell/add-newlines.svg?branch=master)](https://travis-ci.org/perry-mitchell/add-newlines)

## About
This command-line utility is designed to scrape a list of files to analyse their new line characters. It replaces invalid new-line formats at the end of each file with a single form.

Install it globally to be able to use it anywhere:

```shell
npm install -g add-newlines

# run with addnl:
addnl items/*.*
```

Or locally to use within `package.json` scripts or from within `node_modules/.bin/`:

```shell
npm install add-newlines --save-dev
```

_package.json:_

```json
{
    "scripts": {
        "newlines": "addnl source/**/*.js"
    }
}
```

## Usage
Install the cli globally or locally, and use the `addnl` executable to specify a list of files:

```shell
addnl source/**/*.js
```

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