2.0.0 • Published 3 years ago

@pnpm/exec v2.0.0

Weekly downloads
2,640
License
MIT
Repository
github
Last release
3 years ago

@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

3.0.0

3 years ago

2.0.0

4 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago