Neptune: Planet or Myth?

    @koolio76/auto-module

    1.2.1 • Public • Published

    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

    Install

    npm i @koolio76/auto-module

    DownloadsWeekly Downloads

    43

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • koolio76