1.0.0 • Published 11 years ago
posix-head v1.0.0
posix-head
A POSIX-like head in JavaScript.
CLI
head -n 20 long.fileAPI
var Head = require('posix-head')var head = new Head(argv)
Returns a transform stream. argv can be:
_: An array of arguments, file inputs; such ashead one.js two.js three.jsfs: Override the file system with a node/io compatible fs.n: The first number lines of each input file shall be copied to standard output. Default is 10.nl: Specify which<newline>character to operate with. Defaults to\n.
license
(c) 2015 Kyle Robinson Young. MIT License
1.0.0
11 years ago
