nl
Convert linebreaks into newline characters ( )
Last updated 5 years ago by mattmueller .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nl 
SYNC missed versions from official npm registry.

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>

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |