1.0.2 • Published 4 years ago

npm-yarn-runtime-installer v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

propertyvalue
modulesstirng[]
saveDevsboolean
manager"yarn" | "npm"
errHandles(err: string) => void

uninstall

propertyvalue
modulesstirng[]
manager"yarn" | "npm"
errHandles(err: string) => void