Skip to content

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

License

Notifications You must be signed in to change notification settings

perry-mitchell/add-newlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Newlines

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

Build Status

NPM

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published