micro-require
v1.0.1
Published
A micro require.js for libraries and small apps
Downloads
2
Readme
micro-require
micro-require is a small require library to be used in libraries and pure js projects.
Installation
npm install --save micro-require
Usage
Use the require
word to import one or more modules/files:
(function() {
// one file
require('myFile.js', function (err) {
if (err) return;
// rest of the code..
});
// multiple files
require(['myFile1.js', 'myFile.js2'], function (err) {
if (err) return;
// rest of the code..
});
})();