deep-extend-stream
Recursively extend the object in a stream
const deepExtend = ; const target = foo: bar: 123;const deepExtendStream = ; deepExtendStream;deepExtendStream; deepExtendStream; deepExtendStream;
Installation
npm install deep-extend-stream
API
const deepExtend = ;
deepExtend([target,] [callback])
target: Object
or Array
callback: Function
Return: Object
(stream.Transform)
It returns a transform stream that recursively extends the target object with passed objects (what is called "deep extend").
Target object is optional ({}
by default).
const deepExtend = ;const deepExtendStream = ; deepExtendStream;
callback(target)
You can specify a function to be called on finish
event. It will be called with the target object as its first argument.
const deepExtend = ; ; ;
License
Copyright (c) 2014 - 2017 Shinnosuke Watanabe
Licensed under the MIT License.