Skip to content

pnpm/exec

Repository files navigation

@pnpm/exec

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

npm version

Installation

pnpm add @pnpm/exec

Usage

import { pnpmExec } from '@pnpm/exec'

await pnpmExec(['install'])
console.log('Done')

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors