pull-prop
Map an object's property with a stream
Install
npm install --save pull-property # with yarn yarn add pull-property
Usage
prop(name, transform)
A through stream that takes and gives objects, replacing a certain property on them.
name
: The property you are mapping (resolved byobject-path
)transform
: A function that returns a through stream, which maps the property
An psuedo example with pull-files
:
Maintained by Jamen Marz (See on Twitter and GitHub for questions & updates)