JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16354
  • Score
    100M100P100Q135344F
  • License MIT

Executes pnpm. If pnpm is not installed, installs it first

Package Exports

  • @pnpm/exec

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pnpm/exec) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@pnpm/exec

Executes pnpm. If pnpm is not installed, installs it first

npm version Build Status

Installation

pnpm add @pnpm/exec

Usage

const pnpm = require('@pnpm/exec').default

pnpm(['install'])
  .then(() => console.log('Done'))
  .catch(console.error.bind(console))

API

pnpmExec(args, [opts])

Executes pnpm. If pnpm is not available, installs it first.

  • args - string[] - list of string arguments.
  • [opts] - object
    • cwd - string - current working directory of the child process.
    • env - object - environment key-value pairs. By default the value of the current process.env.

License

MIT © Zoltan Kochan