unix-head-tail

1.0.5 • Public • Published

unix-head-tail

Build Status

head -n <endLine> <filename> | tail -n +<begLine> for node.js.

var headTail = require('unix-head-tail')

// head -n 7 test.txt | tail -n +3
headTail('test.txt', 3, 7, (err, b) => {
  console.log('test.txt lines 3 to 7 are...')
  console.log(b.toString())
})

Readme

Keywords

none

Package Sidebar

Install

npm i unix-head-tail

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

3.09 kB

Total Files

6

Last publish

Collaborators

  • gpryor