{"name":"libnpmexec","version":"9.0.4","keywords":["npm","npmcli","libnpm","cli","workspaces","libnpmexec"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"libnpmexec@9.0.4","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"contributors":[{"url":"https://ruyadorno.com","name":"Ruy Adorno"}],"homepage":"https://github.com/npm/cli#readme","bugs":{"url":"https://github.com/npm/cli/issues"},"tap":{"files":"test/*.js","nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"6ecbfa5f6549bf0c8f7a1efe9bfcee1f58c3a71c","tarball":"http://registry-npm.ywwl.com/libnpmexec/download/libnpmexec-9.0.4.tgz","fileCount":9,"integrity":"sha512-3rG3N67ZvqgArDBVpght+cln5dmjcHb9t9uTJflnVadaG37zJ8YsmdKijSai5V+m1vjsuos0YhV1h9ytNOaVvg==","signatures":[{"sig":"MEUCICZjjrzVY5xq6xFHXd/+QPRg5aL0r4BagT4Z6T2L6FybAiEAtPLIiQGfQ62jjN+rWmNm20oeZ2zM8sCf4Ui+Amgs1ck=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17704,"size":6644,"noattachment":false,"key":"/libnpmexec/-/libnpmexec-9.0.4.tgz"},"main":"lib/index.js","engines":{"node":"^18.17.0 || >=20.5.0"},"gitHead":"b85d97ed0aef6537496e28bd691466e2d0272f72","scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"owlstronaut","email":"owlstronaut@github.com"},"repository":{"url":"git+https://github.com/npm/cli.git","type":"git","directory":"workspaces/libnpmexec"},"_npmVersion":"10.9.7","description":"npm exec (npx) programmatic API","directories":{},"templateOSS":{"content":"../../scripts/template-oss/index.js","version":"4.29.0","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"23.11.0","dependencies":{"read":"^4.0.0","pacote":"^19.0.0","semver":"^7.3.7","ci-info":"^4.0.0","proc-log":"^5.0.0","walk-up-path":"^3.0.1","npm-package-arg":"^12.0.0","@npmcli/arborist":"^8.0.4","@npmcli/run-script":"^9.0.1","read-package-json-fast":"^4.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^16.3.8","chalk":"^5.2.0","bin-links":"^5.0.0","just-extend":"^6.2.0","just-safe-set":"^4.2.1","@npmcli/template-oss":"4.29.0","@npmcli/eslint-config":"^5.0.1","@npmcli/mock-registry":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/libnpmexec_9.0.4_1773870589421_0.052477603283239915","host":"s3://npm-registry-packages-npm-production"},"readme":"# libnpmexec\n\n[![npm version](https://img.shields.io/npm/v/libnpmexec.svg)](https://npm.im/libnpmexec)\n[![license](https://img.shields.io/npm/l/libnpmexec.svg)](https://npm.im/libnpmexec)\n[![CI - libnpmexec](https://github.com/npm/cli/actions/workflows/ci-libnpmexec.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-libnpmexec.yml)\n\nThe `npm exec` (`npx`) Programmatic API\n\n## Install\n\n`npm install libnpmexec`\n\n## Usage:\n\n```js\nconst libexec = require('libnpmexec')\nawait libexec({\n  args: ['yosay', 'Bom dia!'],\n  cache: '~/.npm/_cacache',\n  npxCache: '~/.npm/_npx',\n  yes: true,\n})\n```\n\n## API:\n\n### `libexec(opts)`\n\n- `opts`:\n  - `args`: List of pkgs to execute **Array<String>**, defaults to `[]`\n  - `call`: An alternative command to run when using `packages` option **String**, defaults to empty string.\n  - `cache`: The path location to where the npm cache folder is placed **String**\n  - `npxCache`: The path location to where the npx cache folder is placed **String**\n  - `chalk`: Chalk instance to use for colors? **Required**\n  - `localBin`: Location to the `node_modules/.bin` folder of the local project to start scanning for bin files **String**, defaults to `./node_modules/.bin`. **libexec** will walk up the directory structure looking for `node_modules/.bin` folders in parent folders that might satisfy the current `arg` and will use that bin if found.\n  - `locationMsg`: Overrides \"at location\" message when entering interactive mode **String**\n  - `globalBin`: Location to the global space bin folder, same as: `$(npm bin -g)` **String**, defaults to empty string.\n  - `packages`: A list of packages to be used (possibly fetch from the registry) **Array<String>**, defaults to `[]`\n  - `path`: Location to where to read local project info (`package.json`) **String**, defaults to `.`\n  - `runPath`: Location to where to execute the script **String**, defaults to `.`\n  - `scriptShell`: Default shell to be used **String**, defaults to `sh` on POSIX systems, `process.env.ComSpec` OR `cmd` on Windows\n  - `yes`: Should skip download confirmation prompt when fetching missing packages from the registry? **Boolean**\n  - `registry`, `cache`, and more options that are forwarded to [@npmcli/arborist](https://github.com/npm/cli/blob/latest/workspaces/arborist/README.md) and [pacote](https://github.com/npm/pacote/#options) **Object**\n\n## LICENSE\n\n[ISC](./LICENSE)\n","publish_time":1773870589566,"_cnpm_publish_time":1773870589566,"dist-tags":{"backport":"10.3.5","latest":"11.0.5","prerelease":"11.0.0-pre.1"}}