async.extend & async.defaults
Simple async
function to extend or defaults object.
Extends async module.
Install
If you use in your project any other async function from async module (of course you are :) ),
please make sure that you install async
module into your node_modules.
It is desirable to use in your project one instance of async
module. Read about Node.JS Folders and Modules
dependencies.
npm install async
npm install async-extend-defaults
Usage
var asyncExtend = extendvar asyncDefaults = defaults var extendableObject = deep: yes: true one: 1 var defaultsObject = deep: yes: true one: 1
If you want async clone object then you can do:
var asyncExtend = extend
If you have installed async
module, and install async-extend-defaults
after async
, you can use module like this:
// Order is not importantvar async = // Require once in project // extend and defaults function extends asyncasyncasync
License
(MIT License)