gqnpminstallthenrequire
v0.0.3
Published
An utility for installing any npm module globally or locally upon execution.
Readme
gqnpminstallthenrequire
.__ __ .__ .__
____ ______ ____ ______ _____ |__| ____ _______/ |______ | | | |
/ ___\ / ____// \\____ \ / \| |/ \ / ___/\ __\__ \ | | | |
/ /_/ >< <_| | | \ |_> > Y Y \ | | \\___ \ | | / __ \| |_| |__
\___ / \__ |___| / __/|__|_| /__|___| /____ > |__| (____ /____/____/
/_____/ |__| \/|__| \/ \/ \/ \/ Description
- An utility for installing any npm module globally or locally upon execution.
Getting Started
Dependencies
- none
Installing
- npm i --save gqnpminstallthenrequire
Executing program
npminstall=require("gqnpminstallthenrequire");
npminstall.npmInstall(cb)
npminstall.npmInstallThenRequire({module:"async"},cb)
cb=function(e,r){
// r will be the loaded module
}
npminstall.npmGlobalInstallThenRequire({module:"async"},cb)
// cb will be called after the npm install is done
Authors
- glidev5
Version History
- 0.0.3
- recompiled app.js
- 0.0.2
- added require parameter to require module differently than module name
- 0.0.1
- Initial Release
License
This project is licensed under the MIT License - see the LICENSE.md file for details
