npm install qwerty -g
//_ Dir/Project -> Check Local [TREE] -> Check Global -> If [-] -> Install Local ; ; //_ Yep, that's all ; /*-------------------}>>node project.js ---------------------+Load: 2 module(s)Dir: /web/project---------------------+ Not found module: steel-model ! Here We Go...[+] steel-model@0.0.33 |> Not found module: fire-inject ! Here We Go...[+] fire-inject@0.0.36 |> ---------------------+Success: 2Failed: 0---------------------+ ...*/
Desc
- Auto-install modules
- Simple, global access
- Ignored
require
cache
Methods of Module
$ | Name | Desc | Args |
---|---|---|---|
- | |||
+ | createInstance | Create new instance | ([isGlobal]) |
+ | new | Set module(s) in Qwerty app |
(name [string, hash], [data]) |
+ | delete | Delete module(s) from Qwerty app |
(name [string, array, hash]) |
- | |||
- | $ | Require | (module [string, array, hash], ) |
- | |||
+ | strict | Stop the work, if has errors in the modules | (v [default: true]) |
- | global | Set $ as Global Var |
(v [default: true]) |
+ | dir | Project directory (where modules) | (v [default: ""]) |
+ | log | Log level (0, 1, 2, 3) | (v [default: 1]) |
+ | use | Package manager | (v [default: "npm"]) |
+ | autoInstall | Auto-install of modules | (v [default: true]) |
Examples
dir__dirname + "/project"; //-----]> ; //_ Get all //_ Get module "moduleX" //_ Create object and call 'func' //_ Get list //_ Alias ; ; //-----]> $; $; prototype { return 69; }; console; ; ;; ; //-------------------------]> $dir__dirname + "/x/node_modules"; //_ Load : First call$dir__dirname;; //_ Return
License
MIT