Pice.installAsync() - shysolocup/pice GitHub Wiki

Info:

Type Return Type
installs a given npm package

Function Async

PiceCommand

Arguments:

  • ?pkg String
    name of the npm package you want to install
    can also put arguments in the name as well if you need to
  • ?args Object
    arguments for the package
    possible arguments:
  • version String: version of the package
  • tag String: tag of the package
  • 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
  • global Boolean: if it should run globally or not
  • dev Boolean: if the package will appear in your devDependencies ( --save-dev )
  • prod Boolean: if the package will appear in your dependencies ( --save-prod )
  • optional Boolean: if the package will appear in your optionalDependencies ( --save-optional )
  • noSave Boolean: if it should prevent saving to dependencies ( --no-save )
  • exact Boolean: if saved dependencies will be configured with an exact version ( --save-exact )
  • bundle Boolean: if saved dependencies will also be added to your bundleDependencies ( --save-bundle )


JS
const pice = require('pice');

pice.installAsync("@stews/soup");


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