npm-yarn-runtime-installer

1.0.2 • Public • Published

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

/npm-yarn-runtime-installer/

    Package Sidebar

    Install

    npm i npm-yarn-runtime-installer

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.95 kB

    Total Files

    3

    Last publish

    Collaborators

    • shinyaigeek