@pnpm/exec
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @pnpm/exec

Weekly Downloads

7,072

Version

2.0.0

License

MIT

Unpacked Size

7.04 kB

Total Files

9

Last publish

Collaborators

  • pnpmuser
  • zkochan