Have ideas to improve npm?Join in the discussion! »

    get-prop-stream

    1.0.0 • Public • Published

    get-prop-stream

    Takes in objects and outputs a certain property from them.

    Basically a streaming wrapper over get-prop.

    npm install --save get-prop-stream

    example

    This will output "Baz" and "Fizz" to stdout.

    var streamArray = require("stream-array");
    var getProp = require("get-prop-stream");
    var stdout = require("stdout");
     
    var data = [{
        foo: {
            bar: "Baz"
        }
    }, {
        foo: {
            bar: "Fizz"
        }
    }];
     
    streamArray(data).pipe(getProp("foo.bar")).pipe(stdout());

    Install

    npm i get-prop-stream

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar