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());

Package Sidebar

Install

npm i get-prop-stream

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rangermauve