@koolio76/auto-module
v1.2.1
Published
Automatically download npm modules without using the terminal. All you just have to do is keep the app running.
Downloads
16
Maintainers
Readme
ABOUT
Automatically download npm modules without using the terminal. All you just have to do is keep the app running ad save when you require a module.
const path = require("path")
const filePath = path.join(__dirname);
const autoModule = require("@koolio76/auto-module");
autoModule({path:filePath});
DEBUG OPTION
To debug, add true has the second argument
const path = require("path")
const filePath = path.join(__dirname);
const autoModule = require("@koolio76/auto-module");
autoModule({path:filePath, debug:true});
USING CURRENT WORKING DIRECTORY
if you don't want to include a path, you can leave the function call empty
const autoModule = require("@koolio76/auto-module");
autoModule({});
INSTALL AS DEV-DEPENDENCY
To install as a dev dependency, put the symbol //[d] in front of the required module
const autoModule = require("@koolio76/auto-module");
autoModule({});
const someModule = require("someModule");//[d]
INSTALL GLOBALLY
To install globally, put the symbol //[g] in front of the required module
const autoModule = require("@koolio76/auto-module");
autoModule({});
const someModule = require("someModule");//[g]
CHANGELOG
- Added more stability
- Updated above documentation