Skip to content

lapwinglabs/nl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>