{"id":18888383,"url":"https://github.com/pnpm/exec","last_synced_at":"2025-04-14T23:21:10.601Z","repository":{"id":52987642,"uuid":"108759334","full_name":"pnpm/exec","owner":"pnpm","description":"Executes pnpm. If pnpm is not installed, installs it first","archived":false,"fork":false,"pushed_at":"2023-08-03T06:36:23.000Z","size":200,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T02:31:58.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pnpm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-10-29T18:20:08.000Z","updated_at":"2024-05-28T06:22:56.000Z","dependencies_parsed_at":"2022-08-28T14:41:11.379Z","dependency_job_id":null,"html_url":"https://github.com/pnpm/exec","commit_stats":{"total_commits":44,"total_committers":4,"mean_commits":11.0,"dds":0.5454545454545454,"last_synced_commit":"21ce3ad3e992e5a437d9a1d2979e66eefdc7418c"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnpm","download_url":"https://codeload.github.com/pnpm/exec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248870440,"owners_count":21175041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T07:43:51.643Z","updated_at":"2025-04-14T23:21:10.579Z","avatar_url":"https://github.com/pnpm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @pnpm/exec\n\n\u003e Executes pnpm. If pnpm is not installed, installs it first\n\n\u003c!--@shields('npm', 'travis')--\u003e\n[![npm version](https://img.shields.io/npm/v/@pnpm/exec.svg)](https://www.npmjs.com/package/@pnpm/exec) [![Build Status](https://img.shields.io/travis/pnpm/exec/master.svg)](https://travis-ci.org/pnpm/exec)\n\u003c!--/@--\u003e\n\n## Installation\n\n```sh\npnpm add @pnpm/exec\n```\n\n## Usage\n\n```ts\nconst pnpm = require('@pnpm/exec').default\n\npnpm(['install'])\n  .then(() =\u003e console.log('Done'))\n  .catch(console.error.bind(console))\n```\n\n## API\n\n### `pnpmExec(args, [opts])`\n\nExecutes pnpm. If pnpm is not available, installs it first.\n\n- `args` - _string\\[]_ - list of string arguments.\n- `[opts]` - _object_\n  - `cwd` - _string_ - current working directory of the child process.\n  - `env` - _object_ - environment key-value pairs. By default the value of the current `process.env`.\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnpm%2Fexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnpm%2Fexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnpm%2Fexec/lists"}