{"name":"libnpmexec","version":"11.0.2","main":"lib/index.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"description":"npm exec (npx) programmatic API","repository":{"type":"git","url":"git+https://github.com/npm/cli.git","directory":"workspaces/libnpmexec"},"keywords":["npm","npmcli","libnpm","cli","workspaces","libnpmexec"],"author":{"name":"GitHub Inc."},"contributors":[{"name":"Ruy Adorno","url":"https://ruyadorno.com"}],"license":"ISC","scripts":{"lint":"npm run eslint","posttest":"npm run lint","test":"tap","snap":"tap","postlint":"template-oss-check","lintfix":"npm run eslint -- --fix","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"tap":{"files":"test/*.js","node-arg":["--require","../../scripts/disable-agent-for-tests.js"],"nyc-arg":["--exclude","tap-snapshots/**"]},"devDependencies":{"@npmcli/eslint-config":"^5.0.1","@npmcli/mock-registry":"^1.0.0","@npmcli/template-oss":"5.1.1","bin-links":"^7.0.0","chalk":"^5.2.0","just-extend":"^6.2.0","just-safe-set":"^4.2.1","tap":"^16.3.8"},"dependencies":{"@gar/promise-retry":"^1.0.0","@npmcli/arborist":"^10.0.2","@npmcli/package-json":"^8.0.0","@npmcli/run-script":"^11.0.0","ci-info":"^4.0.0","npm-package-arg":"^14.0.0","pacote":"^22.0.0","proc-log":"^7.0.0","read":"^6.0.0","semver":"^7.3.7","signal-exit":"^4.1.0","walk-up-path":"^4.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"5.1.1","content":"../../scripts/template-oss/index.js"},"gitHead":"332350fd21e8bd040ce68a8f618c16ccfd23dba7","_id":"libnpmexec@11.0.2","bugs":{"url":"https://github.com/npm/cli/issues"},"homepage":"https://github.com/npm/cli#readme","_nodeVersion":"26.0.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-8aob74iQuUJCprPB0Ege++ibL28Mq+ndLwUoi7V9l4/DKnCo/F70CrB0BoKQjVG3SfeBBFvEwAST49S79/jgjw==","shasum":"833fc6da582175d3b7d7c2769a319e1fa3d9f6e2","tarball":"http://registry-npm.ywwl.com/libnpmexec/download/libnpmexec-11.0.2.tgz","fileCount":11,"unpackedSize":26620,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDfebC6RPj7GhqYb1w7adxB+wPaLAprgce5eGhkLQ6H5wIgX3FfZ2WQpistXEKPs/su2ijwntwveh/MpSgYszSPUdY="}],"size":9691,"noattachment":false,"key":"/libnpmexec/-/libnpmexec-11.0.2.tgz"},"_npmUser":{"name":"reggi","email":"reggi@github.com"},"directories":{},"maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/libnpmexec_11.0.2_1785359165580_0.9175223240803048"},"_hasShrinkwrap":false,"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":1785359165721,"_cnpm_publish_time":1785359165721,"dist-tags":{"backport":"10.3.5","latest":"11.0.5","prerelease":"11.0.0-pre.1"}}