Skip to content

RangerMauve/get-prop-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Takes in objects and outputs a certain property from them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages