Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ix-headpublic

    This package has been deprecated

    Author message:

    Renamed to posix-head

    ix-head

    A POSIX-like head in JavaScript.

    NPM

    build status Build status NPM version

    Sauce Test Status

    CLI

    head -n 20 long.file

    API

    var Head = require('ix-head')

    var head = new Head(argv)

    Returns a transform stream. argv can be:

    • _: An array of arguments, file inputs; such as head one.js two.js three.js
    • fs: 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

    Keywords

    install

    npm i ix-head

    Downloadslast 7 days

    1

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar