Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

add-newlines

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-newlines

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

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 14 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc