nl

1.0.2 • Public • Published

nl

Convert linebreaks into newline characters (\n)

Installation

npm install -g nl

Usage

Convert to newlines from a file:

$ cat in.txt | newline > out.txt

Convert to newlines from your clipboard (OSX):

$ pbpaste | newline | pbcopy

Programmatic usage:

var nl = require('nl')
nl(read('./Readme.md'))

License

(The MIT License)

Copyright (c) 2015 Matthew Mueller <matt@lapwinglabs.com>

Readme

Keywords

none

Package Sidebar

Install

npm i nl

Weekly Downloads

12

Version

1.0.2

License

none

Last publish

Collaborators

  • mattmueller