Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

enb-async-require

1.0.1 • Public • Published

enb-async-require

Build Status Build status

Require files in async manner.

Usage example:

var asyncRequire = require('enb-async-require');
 
function someAsyncFunc () {
    returm asyncRequire('path/to/module').then(function (module) {
        //do stuff with required module here
    }
}

Install

npm i enb-async-require

DownloadsWeekly Downloads

1,335

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar