Skip to content

spearhead-ea/reqwire

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Reqwire

Reqwire is an asynchronous module loader for Node.js.

Usage

// asyncModuleA.js
require('reqwire')(module, function (done) {
  someAsyncInitFunc(function () {

    done();

  });
});

// asyncModuleB.js
require('reqwire')(module, function (done) {
  someAsyncInitFunc(function () {

    done();

  });
});

// main.js
var asyncModuleA = require('./asyncModuleA');
var asyncModuleB = require('./asyncModuleB');

var asyncDependencies = [
  asyncModuleA,
  asyncModuleB
];
require('reqwire')(module, asyncDependencies, function (done) {
  // ...

  done();
});

About

Asynchronous module loader for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%