{"name":"libnpmexec","version":"10.2.3","keywords":["npm","npmcli","libnpm","cli","workspaces","libnpmexec"],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"libnpmexec@10.2.3","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":"7736ca3b4c52a7a638827d663bb04b12b0962051","tarball":"http://registry-npm.ywwl.com/libnpmexec/download/libnpmexec-10.2.3.tgz","fileCount":10,"integrity":"sha512-tCeneLdUhmn8GTORbui7QZrr1Rv8Y2/mQRwMjUeyY8IrhCjv29RkoH3gFz+1CCPGGMp26eT8KI977G74+rXMpw==","signatures":[{"sig":"MEYCIQC/JTNZl/ifHxTon2kV5307vR0ArfsiUfMuMPS3E0tEaQIhAJUgZ4JUcUnBfRjnZ/OhzZSJic4E7mCUrTPcrcfBJMsb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24256,"size":8879,"noattachment":false,"key":"/libnpmexec/-/libnpmexec-10.2.3.tgz"},"main":"lib/index.js","engines":{"node":"^20.17.0 || >=22.9.0"},"gitHead":"1e7774ee4bc98e434339b0969e9caa98c583060c","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":"11.11.0","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":"^5.0.1","pacote":"^21.0.2","semver":"^7.3.7","ci-info":"^4.0.0","proc-log":"^6.0.0","signal-exit":"^4.1.0","walk-up-path":"^4.0.0","npm-package-arg":"^13.0.0","@npmcli/arborist":"^9.4.0","@gar/promise-retry":"^1.0.0","@npmcli/run-script":"^10.0.0","@npmcli/package-json":"^7.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.8","chalk":"^5.2.0","bin-links":"^6.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_10.2.3_1772059766446_0.7233254224085157","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":1772059766607,"_cnpm_publish_time":1772059766607,"dist-tags":{"backport":"10.3.5","latest":"11.0.5","prerelease":"11.0.0-pre.1"}}