1.0.5 • Published 5 years ago

unix-head-tail v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago