0.0.1 • Published 10 years ago

mythos-contrib-async v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

mythos-contrib-async

Mythos contrib module for async

Installation

npm install --save mythos-contrib-async

Usage

Loading

Autoloading

Open config/autoload.js and add the library.

module.exports = {
	...
	"lib": {
		...
		"async": true,
		...
	},
	...
};

Manual Loading

mythos.load('lib', 'async');

Calling the Library

mythos.lib.async.map(['file1','file2','file3'], fs.stat, function(err, results){
	// results is now an array of stats for each file
});

Read more about async...)

License

ISC License