strip-lines
Remove n lines from the beginning of a string
Last updated 9 years ago by watson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install strip-lines 
SYNC missed versions from official npm registry.

strip-lines

Remove n lines from the beginning of a string.

Build status js-standard-style

Installation

npm install strip-lines

Usage

var strip = require('strip-lines')

var str = 'foo\r\nbar\nbaz'

// remove the first 2 lines from `str`
console.log(strip(str, 2)) // => baz

API

The module exposes a single function which takes two arguments:

strip(string, lines)
  • string - The string that should be parsed
  • lines - The number of lines to remove from the beginning of the provided string

License

MIT

Current Tags

  • 1.0.1                                ...           latest (9 years ago)

2 Versions

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

© 2010 - cnpmjs.org x YWFE | Home | YWFE