npm-yarn-runtime-installer
v1.0.2
Published
module to install modules with (yarn | npm) on node.js runtime
Downloads
133
Maintainers
Readme
npm-yarn-runtime-installer
This is the typesafe module to install/uninstall module with yarn/npn on node.js runtime programmatically.
import { install, uninstall } from "npm-yarn-runtime-installer";
install(["react", "react-dom"], false, "yarn", (err) => {
throw new Error(err)
})
uninstall(["react", "react-dom"], "yarn", (err) => {
throw new Error(err)
})
This Returns the child process.
install
|property|value| |:--:|:--:| |modules|stirng[]| |saveDevs|boolean| |manager|"yarn" | "npm"| |errHandles|(err: string) => void|
uninstall
|property|value| |:--:|:--:| |modules|stirng[]| |manager|"yarn" | "npm"| |errHandles|(err: string) => void|