0.2.0 • Published 7 years ago

add-newlines v0.2.0

Weekly downloads
31
License
MIT
Repository
github
Last release
7 years ago

Add Newlines

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

Build Status

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:

npm install -g add-newlines

# run with addnl:
addnl items/*.*

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

npm install add-newlines --save-dev

package.json:

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

Usage

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

addnl source/**/*.js
0.2.0

7 years ago

0.1.0

7 years ago