aliasmo
1.0.3 • Public • Published Aliasmo
Require NodeJs modules using alias
⚠️ Tested only on CommonJS system, and not too far in deep.
API
require('aliasmo')();
require('aliasmo')({
"@root": ".",
"@config": "./config.js",
"@routes": "routes/",
"@util": "modules/util"
});
package.json
{
"name": "app",
"version": "0.0.1",
"main": "app.js",
"aliases": {
"@root": ".",
"@config": "./config.js",
"@routes": "routes/",
"@util": "modules/util"
},
"dependencies": {
}
}
Package Sidebar
Install
Weekly Downloads