Pice.npm() - shysolocup/pice GitHub Wiki

Info:

Type Return Type
runs a given npm command

Function Sync

PiceCommand

Arguments:

  • ?cmd String
    name of the npm command you want to run
  • ?args Object
    arguments for the npm command
    possible arguments:
  • sync Boolean: if it'll run the command synchronously or not (dominant over async)
  • async Boolean: if it'll run the command asynchronously or not


JS
const pice = require('pice');

pice.npm("install @stews/soup");


⚠️ **GitHub.com Fallback** ⚠️