1.0.5 • Published 6 years ago

unix-head-tail v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
6 years ago

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())
})
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago