enigmare/v2-crawler
1889
1{"id":"doc-dependency_selectors_npm_docs-ce470362","source":"documentation","title":"Dependency Selectors | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/dependency-selectors","text":"Example:\n```css\n/* return dependencies that have a `scripts.test` containing `\"tap\"` */*: attr(scripts, [test~=tap]);\n```\n\nExample:\n```css\n/* return dependencies that have a [testling config](https://ci.testling.com/guide/advanced_configuration) for opera browsers */*: attr(testling, browsers, [~=opera]);\n```\n\nExample:\n```css\n/* removes the distinction between properties & arrays *//* ie. we'd have to check the property & iterate to match selection */*:attr([keywords^=react])*:attr(contributors, :attr([name~=Jordan]))\n```\n\nExample:\n```css\n/* return dependencies that have the exact keyword \"react\" *//* this is equivalent to `*:keywords([value=\"react\"])` */*: attr([keywords=react]);\n```\n\nExample:\n```css\n/* returns */*: attr(contributors, [email=ruyadorno @github.com]);\n```\n\nExample:\n```js\nconst Arborist = require(\"@npmcli/arborist\");const arb = new Arborist({});\n```\n\nExample:\n```js\n// root-levelarb.loadActual().then(async (tree) => { // query all production dependencies const results = await tree.querySelectorAll(\".prod\"); console.log(results);});\n```\n\nExample:\n```js\n// iterativearb.loadActual().then(async (tree) => { // query for the deduped version of react const results = await tree.querySelectorAll(\"#react:not(:deduped)\"); // query the deduped react for git deps const deps = await results[0].querySelectorAll(\":type(git)\"); console.log(deps);});\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.343Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":349}}2{"id":"doc-scripts_npm_docs-7063df59","source":"documentation","title":"Scripts | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/scripts","text":"Example:\n```json\n{ \"scripts\": { \"precompress\": \"{{ executes BEFORE the `compress` script }}\", \"compress\": \"{{ run command to compress files }}\", \"postcompress\": \"{{ executes AFTER `compress` script }}\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"dependencies\": { \"bar\": \"0.1.x\" }, \"scripts\": { \"start\": \"bar ./test\" }}\n```\n\nExample:\n```bash\nprocess.env.npm_package_scripts_install === \"foo.js\"\n```\n\nExample:\n```json\n{ \"scripts\": { \"prepare\": \"scripts/build.js\", \"test\": \"scripts/test.js\" }}\n```\n\nExample:\n```json\n{ \"scripts\": { \"prepare\": \"npm run build\", \"build\": \"tsc\", \"test\": \"jest\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.344Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":162}}3{"id":"doc-accessing_npm_using_two_factor_authentication_np-8353b457","source":"documentation","title":"Accessing npm using two-factor authentication | npm Docs","url":"https://docs.npmjs.com/accessing-npm-using-2fa","text":"Example:\n```bash\nuser@host:~$ npm loginnpm notice Log in on https://registry.npmjs.org/Username: monaPassword:Email: (this IS public) mona@github.comnpm notice Open https://www.npmjs.com/login/913c3ab1-89a0-44bd-be8d-d946e2e906f0 to use your security key for authentication or enter OTP from your authenticator app\n```\n\nExample:\n```text\nEnter one-time password:\n```\n\nExample:\n```bash\nuser@host:~$ npm loginnpm notice Log in on https://registry.npmjs.org/Authenticate your account at:https://www.npmjs.com/login?next=/login/cli/b1a2f96a-ce09-4463-954c-c99f6773b922Press ENTER to open in the browser...\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.350Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":155}}4{"id":"doc-configuring_two_factor_authentication_npm_docs-5c0f41e1","source":"documentation","title":"Configuring two-factor authentication | npm Docs","url":"https://docs.npmjs.com/configuring-two-factor-authentication","text":"Example:\n```text\nnpm password:\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.352Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}5{"id":"doc-using_npm_packages_in_your_projects_npm_docs-ddf031c3","source":"documentation","title":"Using npm packages in your projects | npm Docs","url":"https://docs.npmjs.com/using-npm-packages-in-your-projects","text":"Example:\n```javascript\nvar lodash = require('lodash');\nvar output = lodash.without([1, 2, 3], 1);console.log(output);\n```\n\nExample:\n```json\n{ \"dependencies\": { \"package_name\": \"^1.0.0\" }}\n```\n\nExample:\n```js\nvar projectName = require(\"@scope/package-name\")\n```\n\nExample:\n```json\n{ \"dependencies\": { \"@scope/package_name\": \"^1.0.0\" }}\n```\n\nExample:\n```bash\nmodule.js:340 throw err; ^Error: Cannot find module 'lodash'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.353Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":27,"estimatedTokens":114}}6{"id":"doc-creating_node_js_modules_npm_docs-fc66f892","source":"documentation","title":"Creating Node.js modules | npm Docs","url":"https://docs.npmjs.com/creating-node-js-modules","text":"Example:\n```bash\nexports.printMsg = function() { console.log(\"This is a message from the demo package\");}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.353Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":31}}7{"id":"doc-common_errors_npm_docs-e2878d26","source":"documentation","title":"Common errors | npm Docs","url":"https://docs.npmjs.com/common-errors","text":"Example:\n```bash\nnpm ERR! not found: gitENOGIT\n```\n\nExample:\n```ruby\nconfig.vm.provider \"virtualbox\" do |v| v.customize [\"sharedfolder\", \"add\", :id, \"--name\", \"www\", \"--hostpath\", ((\"//?/\" + File.dirname(__FILE__) + \"/www\").gsub(\"/\",\"\\\\\"))]end\nconfig.vm.provision :shell, inline: \"mkdir /home/vagrant/www\"config.vm.provision :shell, inline: \"mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` > www /home/vagrant/www\", run: \"always\"\n```\n\nExample:\n```bash\ngit config --global url.\"https://github.com/\".insteadOf git@github.com:git config --global url.\"https://\".insteadOf git://\n```\n\nExample:\n```bash\nnpm http 404 https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.7.0.tgznpm ERR! fetch failed https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.7.0.tgznpm ERR! Error: 404 Not Found\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.354Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":213}}8{"id":"doc-try_the_latest_stable_version_of_npm_npm_docs-93ee7de4","source":"documentation","title":"Try the latest stable version of npm | npm Docs","url":"https://docs.npmjs.com/try-the-latest-stable-version-of-npm","text":"Example:\n```bash\ncd %ProgramFiles%\\nodejsnpm install npm@latest\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.356Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":21}}9{"id":"doc-creating_a_package_json_file_npm_docs-d2c4dd45","source":"documentation","title":"Creating a package.json file | npm Docs","url":"https://docs.npmjs.com/creating-a-package-json-file","text":"Example:\n```bash\n{ \"name\": \"my-awesome-package\", \"version\": \"1.0.0\", \"author\": \"Your Name <email@example.com> (https://example.com)\"}\n```\n\nExample:\n```bash\nmodule.exports = { customField: 'Example custom field', otherCustomField: 'This example field is really cool'}\n```\n\nExample:\n```bash\n> npm init --yesWrote to /home/monatheoctocat/my_package/package.json:\n{ \"name\": \"my_package\", \"description\": \"make your package easier to find on the npm website\", \"version\": \"1.0.0\", \"scripts\": { \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\" }, \"repository\": { \"type\": \"git\", \"url\": \"https://github.com/monatheoctocat/my_package.git\" }, \"keywords\": [], \"author\": \"\", \"license\": \"ISC\", \"bugs\": { \"url\": \"https://github.com/monatheoctocat/my_package/issues\" }, \"homepage\": \"https://github.com/monatheoctocat/my_package\"}\n```\n\nExample:\n```bash\n> npm set init-author-email \"example-user@example.com\"> npm set init-author-name \"example_user\"> npm set init-license \"MIT\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.356Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":253}}10{"id":"doc-downloading_and_installing_node_js_and_npm_npm_d-27d3491c","source":"documentation","title":"Downloading and installing Node.js and npm | npm Docs","url":"https://docs.npmjs.com/downloading-and-installing-node-js-and-npm","text":"Example:\n```bash\nnode -vnpm -v\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.356Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}11{"id":"doc-creating_and_publishing_unscoped_public_packages-5d778e56","source":"documentation","title":"Creating and publishing unscoped public packages | npm Docs","url":"https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages","text":"Example:\n```bash\ngit initgit remote add origin git://git-remote-url\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.357Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":22}}12{"id":"doc-creating_and_publishing_scoped_public_packages_n-460057d5","source":"documentation","title":"Creating and publishing scoped public packages | npm Docs","url":"https://docs.npmjs.com/creating-and-publishing-scoped-public-packages","text":"Example:\n```bash\ngit initgit remote add origin git://git-remote-url\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.358Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":22}}13{"id":"doc-specifying_dependencies_and_devdependencies_in_a-0153c7a7","source":"documentation","title":"Specifying dependencies and devDependencies in a package.json file | npm Docs","url":"https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file","text":"Example:\n```bash\n{ \"name\": \"my_package\", \"version\": \"1.0.0\", \"dependencies\": { \"my_dep\": \"^1.0.0\", \"another_dep\": \"~2.2.0\" }}\n```\n\nExample:\n```bash\n\"name\": \"my_package\",\"version\": \"1.0.0\",\"dependencies\": { \"my_dep\": \"^1.0.0\", \"another_dep\": \"~2.2.0\"},\"devDependencies\" : { \"my_test_framework\": \"^3.1.0\", \"another_dev_dep\": \"1.0.0 - 1.2.0\"}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.359Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":93}}14{"id":"doc-creating_and_publishing_private_packages_npm_doc-79dcf143","source":"documentation","title":"Creating and publishing private packages | npm Docs","url":"https://docs.npmjs.com/creating-and-publishing-private-packages","text":"Example:\n```bash\ngit initgit remote add origin git://git-remote-url\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.359Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":22}}15{"id":"doc-deprecating_and_undeprecating_packages_or_packag-34df2787","source":"documentation","title":"Deprecating and undeprecating packages or package versions | npm Docs","url":"https://docs.npmjs.com/deprecating-and-undeprecating-packages-or-package-versions","text":"Example:\n```bash\nnpm owner add npm <package-name>npm owner rm <user> <package-name>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.359Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":26}}16{"id":"doc-npm_docs_npm_docs-16e3fa65","source":"documentation","title":"npm-docs | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-docs","text":"Example:\n```bash\nnpm docs [<pkgname> [<pkgname> ...]]\nalias: home\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.359Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":21}}17{"id":"doc-npm_find_dupes_npm_docs-5471a94c","source":"documentation","title":"npm-find-dupes | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-find-dupes","text":"Example:\n```bash\nnpm find-dupes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.360Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":13}}18{"id":"doc-workspaces_npm_docs-150709fb","source":"documentation","title":"workspaces | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/workspaces","text":"Example:\n```json\n{ \"name\": \"my-workspaces-powered-project\", \"workspaces\": [\"packages/a\"]}\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json\n```\n\nExample:\n```bash\n.+-- node_modules| `-- a -> ../packages/a+-- package-lock.json+-- package.json`-- packages +-- a | `-- package.json\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json `-- b `-- package.json\n```\n\nExample:\n```bash\n// ./packages/a/index.jsmodule.exports = 'a'\n// ./lib/index.jsconst moduleA = require('a')console.log(moduleA) // -> a\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"packages/a\", \"packages/b\" ]}\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"packages/b\", \"packages/a\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.361Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":184}}19{"id":"doc-npm_rebuild_npm_docs-351eda0b","source":"documentation","title":"npm-rebuild | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-rebuild","text":"Example:\n```bash\nnpm rebuild [<package-spec>] ...]\nalias: rb\n```\n\nExample:\n```bash\n\"scripts\": { \"install\": \"node-gyp rebuild\"}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.362Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":37}}20{"id":"doc-trusted_publishing_for_npm_packages_npm_docs-8616a0ee","source":"documentation","title":"Trusted publishing for npm packages | npm Docs","url":"https://docs.npmjs.com/trusted-publishers","text":"Example:\n```yaml\nname: Publish Package\non: push: tags: - 'v*'\npermissions: id-token: write # Required for OIDC contents: read\njobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6\n - uses: actions/setup-node@v6 with: node-version: '24' registry-url: 'https://registry.npmjs.org' package-manager-cache: false # never use caching in release builds - run: npm ci - run: npm run build --if-present - run: npm test - run: npm publish # Or: npm stage publish\n```\n\nExample:\n```yaml\nstages: - test - build - publish\nvariables: NODE_VERSION: '24'\ntest: stage: test image: node:${NODE_VERSION} script: - npm ci - npm test\npublish: stage: publish image: node:${NODE_VERSION} id_tokens: NPM_ID_TOKEN: aud: \"npm:registry.npmjs.org\" SIGSTORE_ID_TOKEN: aud: sigstore script: - npm ci - npm run build --if-present - npm publish # Or: npm stage publish only: - tags\n```\n\nExample:\n```yaml\nversion: 2.1\njobs: publish: docker: - image: cimg/node:22.14 steps: - checkout - run: name: Install dependencies command: npm ci - run: name: Run tests command: npm test - run: name: Build command: npm run build --if-present - run: name: Publish to npm with OIDC command: | export NPM_ID_TOKEN=$(circleci run oidc get --claims '{\"aud\": \"npm:registry.npmjs.org\"}') npm publish # Or: npm stage publish\nworkflows: publish: jobs: - publish: filters: tags: only: /^v.*/ branches: ignore: /.*/\n```\n\nExample:\n```bash\nNPM_CONFIG_PROVENANCE=false npm publish\n```\n\nExample:\n```ini\nprovenance=false\n```\n\nExample:\n```json\n{ \"publishConfig\": { \"provenance\": false }}\n```\n\nExample:\n```yaml\n# GitHub Actions example- uses: actions/setup-node@v6 with: node-version: '24' registry-url: 'https://registry.npmjs.org' package-manager-cache: false # never use caching in release builds# Use a read-only token for installing dependencies- run: npm ci env: NODE_AUTH_TOKEN: ${{ secrets.NPM_READ_TOKEN }}\n# Publish uses OIDC - no token needed- run: npm publish\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.362Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":46,"estimatedTokens":574}}21{"id":"doc-folders_npm_docs-606a9897","source":"documentation","title":"Folders | npm Docs","url":"https://docs.npmjs.com/cli/v12/configuring-npm/folders","text":"Example:\n```bash\nfoo+-- blerg@1.2.5+-- bar@1.2.3| +-- blerg@1.x (latest=1.3.7)| +-- baz@2.x| | `-- quux@3.x| | `-- bar@1.2.3 (cycle)| `-- asdf@*`-- baz@1.2.3 `-- quux@3.x `-- bar\n```\n\nExample:\n```bash\nfoo+-- node_modules +-- blerg (1.2.5) <---[A] +-- bar (1.2.3) <---[B] | +-- node_modules | +-- baz (2.0.2) <---[C] +-- asdf (2.3.4) +-- baz (1.2.3) <---[D] +-- quux (3.2.0) <---[E]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.363Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":114}}22{"id":"doc-npmrc_npm_docs-91c186c6","source":"documentation","title":".npmrc | npm Docs","url":"https://docs.npmjs.com/cli/v12/configuring-npm/npmrc","text":"Example:\n```bash\ncache = ${HOME}/.npm-packagesnode-options = \"${NODE_OPTIONS?} --use-system-ca\"\n```\n\nExample:\n```bash\nkey[] = \"first value\"key[] = \"second value\"\n```\n\nExample:\n```bash\n# last modified: 01 Jan 2016; Set a new registry for a scoped package@myscope:registry=https://mycustomregistry.example.org\n```\n\nExample:\n```json\n{ \"name\": \"my-package\", \"config\": { \"mirror\": \"https://example.com/\" }}\n```\n\nExample:\n```bash\n; bad config_authToken=MYTOKEN\n; good config@myorg:registry=https://somewhere-else.com/myorg@another:registry=https://somewhere-else.com/another//registry.npmjs.org/:_authToken=MYTOKEN\n; would apply to both @myorg and @another//somewhere-else.com/:_authToken=MYTOKEN\n; would apply only to @myorg//somewhere-else.com/myorg/:_authToken=MYTOKEN1\n; would apply only to @another//somewhere-else.com/another/:_authToken=MYTOKEN2\n```\n\nExample:\n```bash\nwarn Unknown user config \"electron_mirror\".This will stop working in the next major version of npm.\n```\n\nExample:\n```bash\nexport ELECTRON_MIRROR=\"https://mirrorexample.npmjs.org/mirrors/electron/\"export ELECTRON_CUSTOM_DIR=\"{{ version }}\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.363Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":40,"estimatedTokens":283}}23{"id":"doc-npm_view_npm_docs-54c301a9","source":"documentation","title":"npm-view | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-view","text":"Example:\n```bash\nnpm view [<package-spec>] [<field>[.subfield]...]\naliases: info, show, v\n```\n\nExample:\n```bash\nnpm view connect\n```\n\nExample:\n```bash\nnpm view ronn@0.3.5 dependencies\n```\n\nExample:\n```bash\nnpm view . dependencies\n```\n\nExample:\n```bash\nnpm view npm repository.url\n```\n\nExample:\n```bash\nnpm view opts@$(npm view ronn dependencies.opts)\n```\n\nExample:\n```bash\nnpm view express contributors.email\n```\n\nExample:\n```bash\nnpm view express contributors[0].email\n```\n\nExample:\n```bash\nnpm view express time'[4.8.0]'\n```\n\nExample:\n```bash\nnpm view express \"time[4.17.1]\"\n```\n\nExample:\n```bash\nnpm view express@4.17.1 time\n```\n\nExample:\n```bash\nnpm view express contributors.name contributors.email\n```\n\nExample:\n```bash\nnpm view npm contributors\n```\n\nExample:\n```bash\nnpm view yui3@'>0.5.4' dependencies.jsdom\n```\n\nExample:\n```bash\nnpm view connect versions\n```\n\nExample:\n```bash\n# Access nested propertiesnpm view npm repository.urlnpm view express bugs.url\n```\n\nExample:\n```bash\n# Get the first contributor's emailnpm view express contributors[0].email\n# Get the second maintainer's namenpm view express maintainers[1].name\n```\n\nExample:\n```bash\n# Get publish time for a specific versionnpm view express \"time[4.17.1]\"\n# Get dist-tagsnpm view express \"dist-tags.latest\"\n```\n\nExample:\n```bash\n# Get all contributor emailsnpm view express contributors.email\n# Get all contributor namesnpm view express contributors.name\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.364Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":19,"totalLines":100,"estimatedTokens":361}}24{"id":"doc-npm_undeprecate_npm_docs-0d091704","source":"documentation","title":"npm-undeprecate | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-undeprecate","text":"Example:\n```bash\nnpm undeprecate <package-spec>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.364Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}25{"id":"doc-npm_token_npm_docs-fa446682","source":"documentation","title":"npm-token | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-token","text":"Example:\n```bash\nnpm token listnpm token revoke <id|token>npm token create\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.365Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":23}}26{"id":"doc-npx_npm_docs-46eeb01d","source":"documentation","title":"npx | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npx","text":"Example:\n```bash\nnpx -- <pkg>[@<version>] [args...]npx --package=<pkg>[@<version>] -- <cmd> [args...]npx -c '<cmd> [args...]'npx --package=foo -c '<cmd> [args...]'\n```\n\nExample:\n```bash\n$ npm exec -- tap --bail test/foo.js$ npx tap --bail test/foo.js\n```\n\nExample:\n```bash\n$ npm exec --package=foo -- bar --bar-argument# ~ or ~$ npx --package=foo bar --bar-argument\n```\n\nExample:\n```bash\n$ npm x -c 'eslint && say \"hooray, lint passed\"'$ npx -c 'eslint && say \"hooray, lint passed\"'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.365Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":125}}27{"id":"doc-npm_trust_npm_docs-6c82907c","source":"documentation","title":"npm-trust | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-trust","text":"Example:\n```bash\nnpm trust github [package] --file [--repo|--repository] [--env|--environment] [--allow-publish] [--allow-stage-publish] [-y|--yes]\n```\n\nExample:\n```bash\nnpm trust gitlab [package] --file [--project|--repo|--repository] [--env|--environment] [--allow-publish] [--allow-stage-publish] [-y|--yes]\n```\n\nExample:\n```bash\nnpm trust circleci [package] --org-id <uuid> --project-id <uuid> --pipeline-definition-id <uuid> --vcs-origin <origin> [--context-id <uuid>...] [--allow-publish] [--allow-stage-publish] [-y|--yes]\n```\n\nExample:\n```bash\nnpm trust list [package]\n```\n\nExample:\n```bash\nnpm trust revoke [package] --id=<trust-id>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.365Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":165}}28{"id":"doc-install_npm_docs-6dbafb81","source":"documentation","title":"Install | npm Docs","url":"https://docs.npmjs.com/cli/v12/configuring-npm/install","text":"Example:\n```bash\nnode -vnpm -v\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.366Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}29{"id":"doc-npm_uninstall_npm_docs-5e0c11a2","source":"documentation","title":"npm-uninstall | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-uninstall","text":"Example:\n```bash\nnpm uninstall [<@scope>/]<pkg>...\naliases: unlink, remove, rm, r, un\n```\n\nExample:\n```bash\nnpm uninstall sax\n```\n\nExample:\n```bash\nnpm uninstall lodash --no-save\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.366Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":49}}30{"id":"doc-npm_team_npm_docs-73f900d6","source":"documentation","title":"npm-team | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-team","text":"Example:\n```bash\nnpm team create <scope:team> [--otp <otpcode>]npm team destroy <scope:team> [--otp <otpcode>]npm team add <scope:team> <user> [--otp <otpcode>]npm team rm <scope:team> <user> [--otp <otpcode>]npm team ls <scope>|<scope:team>\n```\n\nExample:\n```bash\nnpm team create @org:newteam\n```\n\nExample:\n```bash\nnpm team add @org:newteam username\n```\n\nExample:\n```bash\nnpm team rm @org:newteam username\n```\n\nExample:\n```bash\nnpm team ls @org\n```\n\nExample:\n```bash\nnpm team ls @org:newteam\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.366Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":128}}31{"id":"doc-docker_and_private_modules_npm_docs-78b9315d","source":"documentation","title":"Docker and private modules | npm Docs","url":"https://docs.npmjs.com/docker-and-private-modules","text":"Example:\n```bash\nFROM node\nCOPY package.json package.jsonRUN npm install\n# Add your source filesCOPY . .CMD npm start\n```\n\nExample:\n```docker\nENV NPM_TOKEN=00000000-0000-0000-0000-000000000000\n```\n\nExample:\n```dockerfile\n# https://docs.npmjs.com/docker-and-private-modulesFROM node:18\nENV APP_HOME=\"/app\"\nWORKDIR ${APP_HOME}\nCOPY package*.json ${APP_HOME}/\nRUN --mount=type=secret,id=npmrc,target=/root/.npmrc npm install\nCOPY . ${APP_HOME}/\nCMD npm start\n```\n\nExample:\n```shell\ndocker build . -t secure-app-secrets:1.0 --secret id=npmrc,src=$HOME/.npmrc\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.369Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":29,"estimatedTokens":143}}32{"id":"doc-npm_dual_use_content_policy_npm_docs-40f5e055","source":"documentation","title":"npm Dual-Use Content Policy | npm Docs","url":"https://docs.npmjs.com/policies/dual-use","text":"Example:\n```json\n{ \"contentPolicy\": { \"class\": \"dual-use\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.370Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":21}}33{"id":"doc-npm_bugs_npm_docs-37fb5af3","source":"documentation","title":"npm-bugs | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-bugs","text":"Example:\n```bash\nnpm bugs [<pkgname> [<pkgname> ...]]\nalias: issues\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.371Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":22}}34{"id":"doc-npm_npm_docs-aa05ff61","source":"documentation","title":"npm | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm","text":"Example:\n```bash\nnpm\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.372Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":10}}35{"id":"doc-npm_completion_npm_docs-b2a07028","source":"documentation","title":"npm-completion | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-completion","text":"Example:\n```bash\nnpm completion\n```\n\nExample:\n```bash\nnpm completion >> ~/.bashrcnpm completion >> ~/.zshrc\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.372Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":32}}36{"id":"doc-npm_config_npm_docs-cdffc5d6","source":"documentation","title":"npm-config | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-config","text":"Example:\n```bash\nnpm config set <key>=<value> [<key>=<value> ...]npm config get [<key> [<key> ...]]npm config delete <key> [<key> ...]npm config list [--json]npm config editnpm config fix\nalias: c\n```\n\nExample:\n```bash\nnpm config set key=value [key=value...]npm set key=value [key=value...]\n```\n\nExample:\n```bash\nnpm config get [key ...]npm get [key ...]\n```\n\nExample:\n```bash\nnpm config list\n```\n\nExample:\n```bash\nnpm config delete key [key ...]\n```\n\nExample:\n```bash\nnpm config edit\n```\n\nExample:\n```bash\nnpm config fix\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.373Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":135}}37{"id":"doc-npm_access_npm_docs-8ce2cf5d","source":"documentation","title":"npm-access | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-access","text":"Example:\n```bash\nnpm access list packages [<user>|<scope>|<scope:team>] [<package>]npm access list collaborators [<package> [<user>]]npm access get status [<package>]npm access set status=public|private [<package>]npm access set mfa=none|publish|automation [<package>]npm access grant <read-only|read-write> <scope:team> [<package>]npm access revoke <scope:team> [<package>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.373Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":98}}38{"id":"doc-npm_audit_npm_docs-6f5d9128","source":"documentation","title":"npm-audit | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-audit","text":"Example:\n```bash\nnpm audit [fix|signatures]\n```\n\nExample:\n```bash\n$ npm audit signatures\n```\n\nExample:\n```bash\n$ npm audit signatures --json --include-attestations\n```\n\nExample:\n```json\n\"dist\":{ \"..omitted..\": \"..omitted..\", \"signatures\": [{ \"keyid\": \"SHA256:{{SHA256_PUBLIC_KEY}}\", \"sig\": \"a312b9c3cb4a1b693e8ebac5ee1ca9cc01f2661c14391917dcb111517f72370809...\" }]}\n```\n\nExample:\n```bash\n{ \"keys\": [{ \"expires\": null, \"keyid\": \"SHA256:{{SHA256_PUBLIC_KEY}}\", \"keytype\": \"ecdsa-sha2-nistp256\", \"scheme\": \"ecdsa-sha2-nistp256\", \"key\": \"{{B64_PUBLIC_KEY}}\" }]}\n```\n\nExample:\n```bash\n$ npm audit fix\n```\n\nExample:\n```bash\n$ npm audit fix --package-lock-only\n```\n\nExample:\n```bash\n$ npm audit fix --only=prod\n```\n\nExample:\n```bash\n$ npm audit fix --force\n```\n\nExample:\n```bash\n$ npm audit fix --dry-run --json\n```\n\nExample:\n```bash\n$ npm audit\n```\n\nExample:\n```bash\n$ npm audit --json\n```\n\nExample:\n```bash\n$ npm audit --audit-level=moderate\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.374Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":13,"totalLines":66,"estimatedTokens":245}}39{"id":"doc-npm_restart_npm_docs-fac7fdbf","source":"documentation","title":"npm-restart | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-restart","text":"Example:\n```bash\nnpm restart [-- <args>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.374Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}40{"id":"doc-npm_repo_npm_docs-21e90032","source":"documentation","title":"npm-repo | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-repo","text":"Example:\n```bash\nnpm repo [<pkgname> [<pkgname> ...]]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.374Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":18}}41{"id":"doc-npm_test_npm_docs-8fc346d9","source":"documentation","title":"npm-test | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-test","text":"Example:\n```bash\nnpm test [-- <args>]\naliases: tst, t\n```\n\nExample:\n```json\n{ \"scripts\": { \"test\": \"node test.js\" }}\n```\n\nExample:\n```bash\nnpm test> npm@x.x.x test> node test.js\n(test.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.374Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":58}}42{"id":"doc-npm_version_npm_docs-3659f920","source":"documentation","title":"npm-version | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-version","text":"Example:\n```bash\nnpm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]\nalias: verison\n```\n\nExample:\n```bash\nnpm version patch -m \"Upgrade to %s for reasons\"\n```\n\nExample:\n```bash\n$ npm config set sign-git-tag true$ npm version patch\nYou need a passphrase to unlock the secret key for user: \"isaacs (http://blog.izs.me/) <i@izs.me>\"2048-bit RSA key, ID 6C481CF6, created 2010-08-31\nEnter passphrase:\n```\n\nExample:\n```json\n{ \"scripts\": { \"preversion\": \"npm test\", \"version\": \"npm run build && git add -A dist\", \"postversion\": \"git push && git push --tags && rm -rf build/temp\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.375Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":24,"estimatedTokens":165}}43{"id":"doc-npm_whoami_npm_docs-25355e66","source":"documentation","title":"npm-whoami | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-whoami","text":"Example:\n```bash\nnpm whoami\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.375Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}44{"id":"doc-npm_unpublish_npm_docs-4654749b","source":"documentation","title":"npm-unpublish | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-unpublish","text":"Example:\n```bash\nnpm unpublish [<package-spec>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.375Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}45{"id":"doc-organizations_npm_docs-c8c1546a","source":"documentation","title":"Organizations | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/orgs","text":"Example:\n```bash\nnpm team ls <org>:developers\n```\n\nExample:\n```bash\nnpm team create <org:team>\n```\n\nExample:\n```bash\nnpm team add <org:team> <user>\n```\n\nExample:\n```bash\nnpm init --scope=<org>\n```\n\nExample:\n```bash\nnpm access grant <read-only|read-write> <org:team> [<package>]\n```\n\nExample:\n```bash\nnpm access revoke <org:team> [<package>]\n```\n\nExample:\n```bash\nnpm access list packages <org> <user>\n```\n\nExample:\n```bash\nnpm access list packages <org:team>\n```\n\nExample:\n```bash\nnpm access list collaborators <pkg>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.376Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":46,"estimatedTokens":134}}46{"id":"doc-removal_npm_docs-3a733204","source":"documentation","title":"Removal | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/removal","text":"Example:\n```bash\nsudo npm uninstall npm -g\n```\n\nExample:\n```bash\nrm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*\n```\n\nExample:\n```bash\nls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm\n```\n\nExample:\n```bash\nfind /usr/local/{lib/node,bin} -exec grep -l npm \\{\\} \\; ;\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.376Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":79}}47{"id":"doc-npm_update_npm_docs-f49b1bb6","source":"documentation","title":"npm-update | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-update","text":"Example:\n```bash\nnpm update [<pkg>...]\naliases: u, up, upgrade, udpate\n```\n\nExample:\n```json\n{ \"dist-tags\": { \"latest\": \"1.2.2\" }, \"versions\": [ \"1.2.2\", \"1.2.1\", \"1.2.0\", \"1.1.2\", \"1.1.1\", \"1.0.0\", \"0.4.1\", \"0.4.0\", \"0.2.0\" ]}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^1.1.1\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"~1.1.1\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^0.2.0\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^0.4.0\"}\n```\n\nExample:\n```json\n{ \"name\": \"my-app\", \"dependencies\": { \"dep1\": \"^1.0.0\", \"dep2\": \"1.0.0\" }}\n```\n\nExample:\n```json\n{ \"name\": \"dep2\", \"dependencies\": { \"dep1\": \"~1.1.1\" }}\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.377Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":47,"estimatedTokens":204}}48{"id":"doc-scope_npm_docs-764f4598","source":"documentation","title":"Scope | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/scope","text":"Example:\n```bash\n@somescope/somepackagename\n```\n\nExample:\n```bash\nnpm install @myorg/mypackage\n```\n\nExample:\n```json\n\"dependencies\": { \"@myorg/mypackage\": \"^1.3.0\"}\n```\n\nExample:\n```javascript\nrequire(\"@myorg/mypackage\");\n```\n\nExample:\n```bash\nnpm login --registry=http://reg.example.com --scope=@myco\n```\n\nExample:\n```bash\nnpm config set @myco:registry=http://reg.example.com\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.377Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":99}}49{"id":"doc-npm_extension_npm_docs-f5eae95e","source":"documentation","title":".npm-extension | npm Docs","url":"https://docs.npmjs.com/cli/v12/configuring-npm/npm-extension","text":"Example:\n```js\n// .npm-extension.mjsexport function transformManifest(pkg, context) { if (pkg.name === \"foo\" && pkg.version.startsWith(\"1.\")) { pkg.dependencies = { ...pkg.dependencies, bar: \"^2.0.0\" }; context.log(`added bar to ${pkg.name}@${pkg.version}`); } return pkg;}\n```\n\nExample:\n```js\n// .npm-extension.cjsmodule.exports = { transformManifest(pkg, context) { return pkg; },};\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.378Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":104}}50{"id":"doc-workspaces_npm_docs-e33d9c6c","source":"documentation","title":"Workspaces | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/workspaces","text":"Example:\n```json\n{ \"name\": \"my-workspaces-powered-project\", \"workspaces\": [\"packages/a\"]}\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json\n```\n\nExample:\n```bash\n.+-- node_modules| `-- a -> ../packages/a+-- package-lock.json+-- package.json`-- packages +-- a | `-- package.json\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json `-- b `-- package.json\n```\n\nExample:\n```json\n{ \"dependencies\": { \"b\": \"^1.0.0\" }}\n```\n\nExample:\n```bash\n// ./packages/a/index.jsmodule.exports = 'a'\n// ./lib/index.jsconst moduleA = require('a')console.log(moduleA) // -> a\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"packages/a\", \"packages/b\" ]}\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"packages/b\", \"packages/a\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.378Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":42,"estimatedTokens":200}}51{"id":"doc-package_json_npm_docs-9121be21","source":"documentation","title":"package.json | npm Docs","url":"https://docs.npmjs.com/cli/v12/configuring-npm/package-json","text":"Example:\n```json\n\"keywords\": [ \"node\", \"javascript\", \"npm\"]\n```\n\nExample:\n```json\n\"homepage\": \"https://github.com/npm/example#readme\"\n```\n\nExample:\n```json\n{ \"bugs\": { \"url\": \"https://github.com/npm/example/issues\", \"email\": \"example@npmjs.com\" }}\n```\n\nExample:\n```json\n{ \"license\": \"BSD-3-Clause\"}\n```\n\nExample:\n```json\n{ \"license\": \"(ISC OR GPL-3.0)\"}\n```\n\nExample:\n```json\n{ \"license\": \"SEE LICENSE IN <filename>\"}\n```\n\nExample:\n```json\n// Not valid metadata{ \"license\" : { \"type\" : \"ISC\", \"url\" : \"https://opensource.org/licenses/ISC\" }}\n// Not valid metadata{ \"licenses\" : [ { \"type\": \"MIT\", \"url\": \"https://www.opensource.org/licenses/mit-license.php\" }, { \"type\": \"Apache-2.0\", \"url\": \"https://opensource.org/licenses/apache2.0.php\" } ]}\n```\n\nExample:\n```json\n{ \"license\": \"ISC\"}\n```\n\nExample:\n```json\n{ \"license\": \"(MIT OR Apache-2.0)\"}\n```\n\nExample:\n```json\n{ \"license\": \"UNLICENSED\"}\n```\n\nExample:\n```json\n{ \"name\": \"Barney Rubble\", \"email\": \"barney@npmjs.com\", \"url\": \"http://barnyrubble.npmjs.com/\"}\n```\n\nExample:\n```json\n{ \"author\": \"Barney Rubble <barney@npmjs.com> (http://barnyrubble.npmjs.com/)\"}\n```\n\nExample:\n```json\n{ \"funding\": { \"type\": \"individual\", \"url\": \"http://npmjs.com/donate\" }}\n```\n\nExample:\n```json\n{ \"funding\": { \"type\": \"patreon\", \"url\": \"https://www.patreon.com/user\" }}\n```\n\nExample:\n```json\n{ \"funding\": \"http://npmjs.com/donate\"}\n```\n\nExample:\n```json\n{ \"funding\": [ { \"type\": \"individual\", \"url\": \"http://npmjs.com/donate\" }, \"http://npmjs.com/donate-also\", { \"type\": \"patreon\", \"url\": \"https://www.patreon.com/user\" } ]}\n```\n\nExample:\n```json\n{ \"bin\": { \"myapp\": \"bin/cli.js\" }}\n```\n\nExample:\n```json\n{ \"name\": \"my-program\", \"version\": \"1.2.5\", \"bin\": \"path/to/program\"}\n```\n\nExample:\n```json\n{ \"name\": \"my-program\", \"version\": \"1.2.5\", \"bin\": { \"my-program\": \"path/to/program\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": \"./man/doc.1\"}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": [\"./man/foo.1\", \"./man/bar.1\"]}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": [\"./man/foo.1\", \"./man/foo.2\"]}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"git+https://github.com/npm/cli.git\" }}\n```\n\nExample:\n```json\n{ \"repository\": \"npm/example\",\n \"repository\": \"github:npm/example\",\n \"repository\": \"gist:11081aaa281\",\n \"repository\": \"bitbucket:user/repo\",\n \"repository\": \"gitlab:user/repo\"}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"git+https://github.com/npm/example.git\" }}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"git+https://github.com/npm/cli.git\", \"directory\": \"workspaces/libnpmpublish\" }}\n```\n\nExample:\n```json\n{ \"gypfile\": false}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"config\": { \"port\": \"8080\" }}\n```\n\nExample:\n```json\n{ \"dependencies\": { \"foo\": \"1.0.0 - 2.9999.9999\", \"bar\": \">=1.0.2 <2.1.2\", \"baz\": \">1.0.2 <=2.3.4\", \"boo\": \"2.0.1\", \"qux\": \"<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0\", \"asd\": \"http://npmjs.com/example.tar.gz\", \"til\": \"~1.2\", \"elf\": \"~1.2.3\", \"two\": \"2.x\", \"thr\": \"3.3.x\", \"lat\": \"latest\", \"dyl\": \"file:../dyl\", \"kpg\": \"npm:pkg@1.0.0\" }}\n```\n\nExample:\n```bash\n<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]\n```\n\nExample:\n```bash\ngit+ssh://git@github.com:npm/cli.git#v1.0.27git+ssh://git@github.com:npm/cli#semver:^5.0git+https://isaacs@github.com/npm/cli.gitgit://github.com/npm/cli.git#v1.0.27\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"0.0.0\", \"dependencies\": { \"express\": \"expressjs/express\", \"mocha\": \"mochajs/mocha#4727d357ea\", \"module\": \"npm/example-github-repo#feature\\/branch\" }}\n```\n\nExample:\n```bash\n../foo/bar~/foo/bar./foo/bar/foo/bar\n```\n\nExample:\n```json\n{ \"name\": \"baz\", \"dependencies\": { \"bar\": \"file:../foo/bar\" }}\n```\n\nExample:\n```json\n{ \"name\": \"@npm/ethopia-waza\", \"description\": \"a delightfully fruity coffee varietal\", \"version\": \"1.2.3\", \"devDependencies\": { \"coffee-script\": \"~1.6.3\" }, \"scripts\": { \"prepare\": \"coffee -o lib/ -c src/waza.coffee\" }, \"main\": \"lib/waza.js\"}\n```\n\nExample:\n```json\n{ \"name\": \"@npm/tea-latte\", \"version\": \"1.3.5\", \"peerDependencies\": { \"@npm/tea\": \"2.x\" }}\n```\n\nExample:\n```bash\n├── @npm/tea-latte@1.3.5└── @npm/tea@2.2.0\n```\n\nExample:\n```json\n{ \"name\": \"@npm/tea-latte\", \"version\": \"1.3.5\", \"peerDependencies\": { \"@npm/tea\": \"2.x\", \"@npm/soy-milk\": \"1.2\" }, \"peerDependenciesMeta\": { \"@npm/soy-milk\": { \"optional\": true } }}\n```\n\nExample:\n```json\n{ \"name\": \"@npm/awesome-web-framework\", \"version\": \"1.0.0\", \"bundleDependencies\": [\"@npm/renderized\", \"@npm/super-streams\"]}\n```\n\nExample:\n```json\n{ \"optionalDependencies\": { \"@npm/foo\": \"^1.0.0\" }}\n```\n\nExample:\n```js\ntry { var foo = require(\"@npm/foo\"); var fooVersion = require(\"@npm/foo/package.json\").version;} catch (er) { foo = null;}if (notGoodFooVersion(fooVersion)) { foo = null;}\n// .. then later in your program ..\nif (foo) { foo.doFooThings();}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/foo\": \"1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/foo\": \"^1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/foo\": { \".\": \"1.0.0\", \"@npm/bar\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/bar\": { \"@npm/foo\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/baz\": { \"@npm/bar\": { \"@npm/foo\": \"1.0.0\" } } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/bar@2.0.0\": { \"@npm/foo\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"dependencies\": { \"@npm/foo\": \"^1.0.0\" }, \"overrides\": { // BAD, will throw an EOVERRIDE error // \"foo\": \"^2.0.0\" // GOOD, specs match so override is allowed // \"foo\": \"^1.0.0\" // BEST, the override is defined as a reference to the dependency \"@npm/foo\": \"$foo\", // the referenced package does not need to match the overridden one \"@npm/bar\": \"$foo\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"package-name\": \"npm:@scope/forked-package@1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"package-name\": \"github:username/repo#branch-name\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"package-name\": \"file:../local-fork\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"parent-package\": { \"vulnerable-dep\": \"github:username/patched-fork#v2.0.1\" } }}\n```\n\nExample:\n```json\n{ \"packageExtensions\": { \"broken-package@1\": { \"dependencies\": { \"missing-runtime-dep\": \"^2.0.0\" } }, \"typescript-plugin@4.3.0\": { \"peerDependencies\": { \"typescript\": \">=5\" }, \"peerDependenciesMeta\": { \"typescript\": { \"optional\": true } } }, \"@scope/uses-types@2\": { \"dependencies\": { \"@types/node\": \"^22.0.0\" } } }}\n```\n\nExample:\n```json\n{ \"engines\": { \"node\": \">=0.10.3 <15\" }}\n```\n\nExample:\n```json\n{ \"engines\": { \"npm\": \"~1.0.20\" }}\n```\n\nExample:\n```json\n{ \"os\": [\"darwin\", \"linux\"]}\n```\n\nExample:\n```json\n{ \"os\": [\"!win32\"]}\n```\n\nExample:\n```json\n{ \"cpu\": [\"x64\", \"ia32\"]}\n```\n\nExample:\n```json\n{ \"cpu\": [\"!arm\", \"!mips\"]}\n```\n\nExample:\n```json\n{ \"os\": \"linux\", \"libc\": \"glibc\"}\n```\n\nExample:\n```json\n{ \"devEngines\": { \"runtime\": { \"name\": \"node\", \"onFail\": \"error\" }, \"packageManager\": { \"name\": \"npm\", \"onFail\": \"error\" } }}\n```\n\nExample:\n```json\n{ \"name\": \"workspace-example\", \"workspaces\": [\"./packages/*\"]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.380Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":62,"totalLines":318,"estimatedTokens":1977}}52{"id":"doc-npm_ls_npm_docs-22698f7b","source":"documentation","title":"npm-ls | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-ls","text":"Example:\n```bash\nnpm ls <package-spec>\nalias: list\n```\n\nExample:\n```bash\nnpm@12.0.2 /path/to/npm└─┬ init-package-json@0.0.4 └── promzard@0.1.5\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.381Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":41}}53{"id":"doc-npm_install_scripts_npm_docs-e6a18f03","source":"documentation","title":"npm-install-scripts | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-install-scripts","text":"Example:\n```bash\nnpm install-scripts approve <pkg> [<pkg> ...]npm install-scripts approve --allnpm install-scripts deny <pkg> [<pkg> ...]npm install-scripts deny --allnpm install-scripts lsnpm install-scripts prune\n```\n\nExample:\n```bash\n# Approve all currently-installed install scripts after reviewing themnpm install-scripts approve --all\n# Approve specific packages, pinned to their installed versionnpm install-scripts approve canvas sharp\n# Deny a package so it stays blockednpm install-scripts deny telemetry-pkg\n# Preview which packages still need reviewnpm install-scripts ls\n# Preview stale allowScripts entries, then remove themnpm install-scripts prune --dry-runnpm install-scripts prune\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.381Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":15,"estimatedTokens":179}}54{"id":"doc-npm_pkg_npm_docs-8dca9a73","source":"documentation","title":"npm-pkg | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-pkg","text":"Example:\n```bash\nnpm pkg set <key>=<value> [<key>=<value> ...]npm pkg get [<key> [<key> ...]]npm pkg delete <key> [<key> ...]npm pkg set [<array>[<index>].<key>=<value> ...]npm pkg set [<array>[].<key>=<value> ...]npm pkg fix\n```\n\nExample:\n```bash\nnpm pkg get name\n```\n\nExample:\n```bash\nnpm pkg get name version\n```\n\nExample:\n```bash\nnpm pkg get scripts.test\n```\n\nExample:\n```bash\nnpm pkg get contributors.email\n```\n\nExample:\n```bash\nnpm pkg get contributors[0].email\n```\n\nExample:\n```bash\nnpm pkg get \"exports[.].require\"\n```\n\nExample:\n```bash\nnpm pkg set bin.mynewcommand=cli.js\n```\n\nExample:\n```bash\nnpm pkg set description='Awesome package' engines.node='>=10'\n```\n\nExample:\n```bash\nnpm pkg set contributors[0].name='Foo' contributors[0].email='foo@bar.ca'\n```\n\nExample:\n```bash\nnpm pkg set contributors[].name='Foo' contributors[].name='Bar'\n```\n\nExample:\n```bash\nnpm pkg set private=true --json\n```\n\nExample:\n```bash\nnpm pkg set tap.timeout=60 --json\n```\n\nExample:\n```bash\nnpm pkg delete scripts.build\n```\n\nExample:\n```bash\nnpm pkg set funding=https://example.com --ws\n```\n\nExample:\n```bash\nnpm pkg get name version --ws{ \"a\": { \"name\": \"a\", \"version\": \"1.0.0\" }, \"b\": { \"name\": \"b\", \"version\": \"1.0.0\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.382Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":16,"totalLines":81,"estimatedTokens":312}}55{"id":"doc-npm_install_ci_test_npm_docs-95843287","source":"documentation","title":"npm-install-ci-test | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-install-ci-test","text":"Example:\n```bash\nnpm install-ci-test\naliases: cit, clean-install-test, sit\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.382Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":23}}56{"id":"doc-npm_logout_npm_docs-fe02c625","source":"documentation","title":"npm-logout | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-logout","text":"Example:\n```bash\nnpm logout\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.383Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":102}}57{"id":"doc-npm_install_test_npm_docs-fb8ec640","source":"documentation","title":"npm-install-test | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-install-test","text":"Example:\n```bash\nnpm install-test [<package-spec> ...]\nalias: it\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.384Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":50}}58{"id":"doc-npm_pack_npm_docs-a66cdcc6","source":"documentation","title":"npm-pack | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-pack","text":"Example:\n```bash\nnpm pack <package-spec>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.384Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}59{"id":"doc-npm_root_npm_docs-3a8e21e4","source":"documentation","title":"npm-root | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-root","text":"Example:\n```bash\nnpm root\n```\n\nExample:\n```bash\n#!/bin/bashglobal_node_modules=\"$(npm root --global)\"echo \"Global packages installed in: ${global_node_modules}\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.384Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":45}}60{"id":"doc-npm_ll_npm_docs-f63722c1","source":"documentation","title":"npm-ll | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-ll","text":"Example:\n```bash\nnpm ll [[<@scope>/]<pkg> ...]\nalias: la\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.384Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":19}}61{"id":"doc-npm_outdated_npm_docs-b8b46722","source":"documentation","title":"npm-outdated | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-outdated","text":"Example:\n```bash\nnpm outdated [<package-spec> ...]\n```\n\nExample:\n```bash\n$ npm outdatedPackage Current Wanted Latest Location Depended byglob 5.0.15 5.0.15 6.0.1 node_modules/glob dependent-package-namenothingness 0.0.3 git git node_modules/nothingness dependent-package-namenpm 3.5.1 3.5.2 3.5.1 node_modules/npm dependent-package-namelocal-dev 0.0.3 linked linked local-dev dependent-package-nameonce 1.3.2 1.3.3 1.3.3 node_modules/once dependent-package-name\n```\n\nExample:\n```json\n{ \"glob\": \"^5.0.15\", \"nothingness\": \"github:othiym23/nothingness#master\", \"npm\": \"^3.5.1\", \"once\": \"^1.3.1\"}\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.385Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":218}}62{"id":"doc-npm_link_npm_docs-11a44e9b","source":"documentation","title":"npm-link | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-link","text":"Example:\n```bash\nnpm link [<package-spec>]\nalias: ln\n```\n\nExample:\n```bash\ncd ~/projects/node-redis # go into the package directorynpm link # creates global linkcd ~/projects/node-bloggy # go into some other package directory.npm link redis # link-install the package\n```\n\nExample:\n```bash\ncd ~/projects/node-bloggy # go into the dir of your main projectnpm link ../node-redis # link the dir of your dependency\n```\n\nExample:\n```bash\n(cd ../node-redis; npm link)npm link redis\n```\n\nExample:\n```bash\nnpm link @myorg/privatepackage\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.385Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":27,"estimatedTokens":147}}63{"id":"doc-npm_set_npm_docs-dd21fa7c","source":"documentation","title":"npm-set | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-set","text":"Example:\n```bash\nnpm set <key>=<value> [<key>=<value> ...] (See `npm config`)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.386Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":24}}64{"id":"doc-npm_install_npm_docs-2452d6d3","source":"documentation","title":"npm-install | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-install","text":"Example:\n```bash\nnpm install [<package-spec> ...]\naliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall\n```\n\nExample:\n```bash\nnpm install ../../other-package --install-linksnpm install ./sub-package\n```\n\nExample:\n```bash\nnpm install ./package.tgz\n```\n\nExample:\n```bash\nnpm install https://github.com/indexzero/forever/tarball/v0.5.6\n```\n\nExample:\n```bash\nnpm install sax\n```\n\nExample:\n```bash\nnpm install saxnpm install githubname/reponamenpm install @myorg/privatepackagenpm install node-tap --save-devnpm install dtrace-provider --save-optionalnpm install readable-stream --save-exactnpm install ansi-regex --save-bundle\n```\n\nExample:\n```bash\nnpm install my-react@npm:reactnpm install jquery2@npm:jquery@2npm install jquery3@npm:jquery@3npm install npa@npm:npm-package-arg\n```\n\nExample:\n```bash\nnpm install sax@latestnpm install @myorg/mypackage@latest\n```\n\nExample:\n```bash\nnpm install sax@0.1.1npm install @myorg/privatepackage@1.5.0\n```\n\nExample:\n```bash\nnpm install sax@\">=0.1.0 <0.2.0\"npm install @myorg/privatepackage@\"16 - 17\"\n```\n\nExample:\n```bash\nnpm install package@^1.2.3-beta.1 # Matches 1.2.3-beta.1, 1.2.3-beta.2, 1.2.4-beta.1, etc.npm install package@^1.0.0-0 # Matches all 1.x.x prereleases and stable versions\n```\n\nExample:\n```bash\n<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]\n```\n\nExample:\n```bash\nnpm install git+ssh://git@github.com:npm/cli.git#v1.0.27npm install git+ssh://git@github.com:npm/cli#pull/273npm install git+ssh://git@github.com:npm/cli#semver:^5.0npm install git+https://isaacs@github.com/npm/cli.gitnpm install git://github.com/npm/cli.git#v1.0.27GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@github.com:npm/cli.git\n```\n\nExample:\n```bash\nnpm install mygithubuser/myprojectnpm install github:mygithubuser/myproject\n```\n\nExample:\n```bash\nnpm install gist:101a11beef\n```\n\nExample:\n```bash\nnpm install bitbucket:mybitbucketuser/myproject\n```\n\nExample:\n```bash\nnpm install gitlab:mygitlabuser/myprojectnpm install gitlab:myusr/myproj#semver:^5.0\n```\n\nExample:\n```bash\nnpm install sax@\">=0.1.0 <0.2.0\" bench supervisor\n```\n\nExample:\n```bash\nnpm install sax --force\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\nExample:\n```bash\nA+-- B+-- C+-- D\n```\n\nExample:\n```bash\nA+-- B+-- C `-- D@2+-- D@1\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.387Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":22,"totalLines":112,"estimatedTokens":607}}65{"id":"doc-npm_search_npm_docs-c9164239","source":"documentation","title":"npm-search | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-search","text":"Example:\n```bash\nnpm search <search term> [<search term> ...]\naliases: find, s, se\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.387Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":25}}66{"id":"doc-npm_prefix_npm_docs-2a9e6464","source":"documentation","title":"npm-prefix | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-prefix","text":"Example:\n```bash\nnpm prefix\n```\n\nExample:\n```bash\nnpm prefix/usr/local/projects/foo\n```\n\nExample:\n```bash\nnpm prefix -g/usr/local\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.388Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":37}}67{"id":"doc-npm_run_npm_docs-3ce5d6c0","source":"documentation","title":"npm-run | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-run","text":"Example:\n```bash\nnpm run <command> [-- <args>]\naliases: run-script, rum, urn\n```\n\nExample:\n```bash\nnpm run test -- --grep=\"pattern\"\n```\n\nExample:\n```bash\n\"scripts\": {\"test\": \"tap test/*.js\"}\n```\n\nExample:\n```bash\n\"scripts\": {\"test\": \"node_modules/.bin/tap test/*.js\"}\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json +-- b | `-- package.json `-- c `-- package.json\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"./packages/*\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.388Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":32,"estimatedTokens":123}}68{"id":"doc-npm_profile_npm_docs-6a2a925b","source":"documentation","title":"npm-profile | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-profile","text":"Example:\n```bash\nnpm profile enable-2fa [auth-only|auth-and-writes]npm profile disable-2fanpm profile get [<key>]npm profile set <key> <value>\n```\n\nExample:\n```bash\nname: exampleemail: e@example.com (verified)two-factor auth: auth-and-writesfullname: Example Userhomepage:github:created: 2015-02-26T01:38:35.892Zupdated: 2017-10-02T21:29:45.922Z\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.388Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":91}}69{"id":"doc-npm_publish_npm_docs-a5bb87b3","source":"documentation","title":"npm-publish | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-publish","text":"Example:\n```bash\nnpm publish <package-spec>\n```\n\nExample:\n```bash\nnpm publish\n```\n\nExample:\n```bash\nnpm publish --workspace=<workspace-name>\n```\n\nExample:\n```bash\nnpm publish --workspace=workspace-a --workspace=workspace-b\n```\n\nExample:\n```bash\nnpm publish --workspaces\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.389Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":72}}70{"id":"doc-npm_stop_npm_docs-43cf9f54","source":"documentation","title":"npm-stop | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-stop","text":"Example:\n```bash\nnpm stop [-- <args>]\n```\n\nExample:\n```json\n{ \"scripts\": { \"stop\": \"node bar.js\" }}\n```\n\nExample:\n```bash\nnpm stop\n> npm@x.x.x stop> node bar.js\n(bar.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.389Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":54}}71{"id":"doc-npm_prune_npm_docs-218a1a7d","source":"documentation","title":"npm-prune | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-prune","text":"Example:\n```bash\nnpm prune [[<@scope>/]<pkg>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.389Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}72{"id":"doc-npm_start_npm_docs-d077e4d2","source":"documentation","title":"npm-start | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-start","text":"Example:\n```bash\nnpm start [-- <args>]\n```\n\nExample:\n```json\n{ \"scripts\": { \"start\": \"node foo.js\" }}\n```\n\nExample:\n```bash\nnpm start\n> npm@x.x.x start> node foo.js\n(foo.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.389Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":55}}73{"id":"doc-npm_sbom_npm_docs-1f41e0f4","source":"documentation","title":"npm-sbom | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-sbom","text":"Example:\n```bash\nnpm sbom\n```\n\nExample:\n```json\n{ \"$schema\": \"http://cyclonedx.org/schema/bom-1.5.schema.json\", \"bomFormat\": \"CycloneDX\", \"specVersion\": \"1.5\", \"serialNumber\": \"urn:uuid:09f55116-97e1-49cf-b3b8-44d0207e7730\", \"version\": 1, \"metadata\": { \"timestamp\": \"2023-09-01T00:00:00.001Z\", \"lifecycles\": [ { \"phase\": \"build\" } ], \"tools\": [ { \"vendor\": \"npm\", \"name\": \"cli\", \"version\": \"10.1.0\" } ], \"component\": { \"bom-ref\": \"simple@1.0.0\", \"type\": \"library\", \"name\": \"simple\", \"version\": \"1.0.0\", \"scope\": \"required\", \"author\": \"John Doe\", \"description\": \"simple react app\", \"purl\": \"pkg:npm/simple@1.0.0\", \"properties\": [ { \"name\": \"cdx:npm:package:path\", \"value\": \"\" } ], \"externalReferences\": [], \"licenses\": [ { \"license\": { \"id\": \"MIT\" } } ] } }, \"components\": [ { \"bom-ref\": \"lodash@4.17.21\", \"type\": \"library\", \"name\": \"lodash\", \"version\": \"4.17.21\", \"scope\": \"required\", \"author\": \"John-David Dalton\", \"description\": \"Lodash modular utilities.\", \"purl\": \"pkg:npm/lodash@4.17.21\", \"properties\": [ { \"name\": \"cdx:npm:package:path\", \"value\": \"node_modules/lodash\" } ], \"externalReferences\": [ { \"type\": \"distribution\", \"url\": \"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz\" }, { \"type\": \"vcs\", \"url\": \"git+https://github.com/lodash/lodash.git\" }, { \"type\": \"website\", \"url\": \"https://lodash.com/\" }, { \"type\": \"issue-tracker\", \"url\": \"https://github.com/lodash/lodash/issues\" } ], \"hashes\": [ { \"alg\": \"SHA-512\", \"content\": \"bf690311ee7b95e713ba568322e3533f2dd1cb880b189e99d4edef13592b81764daec43e2c54c61d5c558dc5cfb35ecb85b65519e74026ff17675b6f8f916f4a\" } ], \"licenses\": [ { \"license\": { \"id\": \"MIT\" } } ] } ], \"dependencies\": [ { \"ref\": \"simple@1.0.0\", \"dependsOn\": [\"lodash@4.17.21\"] }, { \"ref\": \"lodash@4.17.21\", \"dependsOn\": [] } ]}\n```\n\nExample:\n```json\n{ \"spdxVersion\": \"SPDX-2.3\", \"dataLicense\": \"CC0-1.0\", \"SPDXID\": \"SPDXRef-DOCUMENT\", \"name\": \"simple@1.0.0\", \"documentNamespace\": \"http://spdx.org/spdxdocs/simple-1.0.0-bf81090e-8bbc-459d-bec9-abeb794e096a\", \"creationInfo\": { \"created\": \"2023-09-01T00:00:00.001Z\", \"creators\": [\"Tool: npm/cli-10.1.0\"] }, \"documentDescribes\": [\"SPDXRef-Package-simple-1.0.0\"], \"packages\": [ { \"name\": \"simple\", \"SPDXID\": \"SPDXRef-Package-simple-1.0.0\", \"versionInfo\": \"1.0.0\", \"packageFileName\": \"\", \"description\": \"simple react app\", \"primaryPackagePurpose\": \"LIBRARY\", \"downloadLocation\": \"NOASSERTION\", \"filesAnalyzed\": false, \"homepage\": \"NOASSERTION\", \"licenseDeclared\": \"MIT\", \"externalRefs\": [ { \"referenceCategory\": \"PACKAGE-MANAGER\", \"referenceType\": \"purl\", \"referenceLocator\": \"pkg:npm/simple@1.0.0\" } ] }, { \"name\": \"lodash\", \"SPDXID\": \"SPDXRef-Package-lodash-4.17.21\", \"versionInfo\": \"4.17.21\", \"packageFileName\": \"node_modules/lodash\", \"description\": \"Lodash modular utilities.\", \"downloadLocation\": \"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz\", \"filesAnalyzed\": false, \"homepage\": \"https://lodash.com/\", \"licenseDeclared\": \"MIT\", \"externalRefs\": [ { \"referenceCategory\": \"PACKAGE-MANAGER\", \"referenceType\": \"purl\", \"referenceLocator\": \"pkg:npm/lodash@4.17.21\" } ], \"checksums\": [ { \"algorithm\": \"SHA512\", \"checksumValue\": \"bf690311ee7b95e713ba568322e3533f2dd1cb880b189e99d4edef13592b81764daec43e2c54c61d5c558dc5cfb35ecb85b65519e74026ff17675b6f8f916f4a\" } ] } ], \"relationships\": [ { \"spdxElementId\": \"SPDXRef-DOCUMENT\", \"relatedSpdxElement\": \"SPDXRef-Package-simple-1.0.0\", \"relationshipType\": \"DESCRIBES\" }, { \"spdxElementId\": \"SPDXRef-Package-simple-1.0.0\", \"relatedSpdxElement\": \"SPDXRef-Package-lodash-4.17.21\", \"relationshipType\": \"DEPENDS_ON\" } ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.390Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":1112}}74{"id":"doc-verifying_ecdsa_registry_signatures_npm_docs-fd6af5a5","source":"documentation","title":"Verifying ECDSA registry signatures | npm Docs","url":"https://docs.npmjs.com/verifying-registry-signatures","text":"Example:\n```bash\naudited 1640 packages in 2s\n1640 have verified registry signatures\n```\n\nExample:\n```bash\naudited 1640 packages in 2s\n1405 packages have verified registry signatures\n235 packages have missing registry signatures but the registry is providing signing keys:\nmissing-dep@1.0.0 (https://registry.npmjs.org/)...\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.390Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":15,"estimatedTokens":85}}75{"id":"doc-npm_stage_npm_docs-67558392","source":"documentation","title":"npm-stage | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-stage","text":"Example:\n```bash\nnpm stage\n```\n\nExample:\n```bash\nnpm stage publish <package-spec>\n```\n\nExample:\n```bash\nnpm stage list [<package-spec>]\n```\n\nExample:\n```bash\nnpm stage view <stage-id>\n```\n\nExample:\n```bash\nnpm stage approve <stage-id>\n```\n\nExample:\n```bash\nnpm stage reject <stage-id>\n```\n\nExample:\n```bash\nnpm stage download <stage-id>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.390Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":36,"estimatedTokens":89}}76{"id":"doc-npm_query_npm_docs-5a601b1c","source":"documentation","title":"npm-query | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-query","text":"Example:\n```bash\nnpm query <selector>\n```\n\nExample:\n```bash\n# find all dependencies with postinstall scripts & uninstall themnpm query \":attr(scripts, [postinstall])\" | jq 'map(.name)|join(\"\\n\")' -r | xargs -I {} npm uninstall {}\n# find all git dependencies & explain who requires themnpm query \":type(git)\" | jq 'map(.name)' | xargs -I {} npm why {}\n```\n\nExample:\n```stylus\n// all deps*\n// all direct deps:root > *\n// direct production deps:root > .prod\n// direct development deps:root > .dev\n// any peer dep of a direct deps:root > * > .peer\n// any workspace dep.workspace\n// all workspaces that depend on another workspace.workspace > .workspace\n// all workspaces that have peer deps.workspace:has(.peer)\n// any dep named \"lodash\"// equivalent to [name=\"lodash\"]#lodash\n// any deps named \"lodash\" & within semver range ^\"1.2.3\"#lodash@^1.2.3// equivalent to...[name=\"lodash\"]:semver(^1.2.3)\n// get the hoisted node for a given semver range#lodash@^1.2.3:not(:deduped)\n// querying deps with a specific version#lodash@2.1.5// equivalent to...[name=\"lodash\"][version=\"2.1.5\"]\n// has any deps:has(*)\n// deps with no other deps (ie. \"leaf\" nodes):empty\n// manually querying git dependencies[repository^=github:],[repository^=git:],[repository^=https://github.com],[repository^=http://github.com],[repository^=https://github.com],[repository^=+git:...]\n// querying for all git dependencies:type(git)\n// get production dependencies that aren't also dev deps.prod:not(.dev)\n// get dependencies with specific licenses[license=MIT], [license=ISC]\n// find all packages that have @ruyadorno as a contributor:attr(contributors, [email=ruyadorno@github.com])\n```\n\nExample:\n```json\n[ { \"name\": \"\", \"version\": \"\", \"description\": \"\", \"homepage\": \"\", \"bugs\": {}, \"author\": {}, \"license\": {}, \"funding\": {}, \"files\": [], \"main\": \"\", \"browser\": \"\", \"bin\": {}, \"man\": [], \"directories\": {}, \"repository\": {}, \"scripts\": {}, \"config\": {}, \"dependencies\": {}, \"devDependencies\": {}, \"optionalDependencies\": {}, \"bundledDependencies\": {}, \"peerDependencies\": {}, \"peerDependenciesMeta\": {}, \"engines\": {}, \"os\": [], \"cpu\": [], \"workspaces\": {}, \"keywords\": [], ... }, ...\n```\n\nExample:\n```sh\n$ npm query '#react' --expect-result-count=1\n```\n\nExample:\n```sh\n$ npm query ':root>:outdated(in-range).prod' --no-expect-results\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.391Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":55,"estimatedTokens":631}}77{"id":"doc-developers_npm_docs-d42c1e1a","source":"documentation","title":"Developers | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/developers","text":"Example:\n```bash\ngit://github.com/user/project.git#commit-ishgit+ssh://user@hostname:project.git#commit-ishgit+http://user@hostname/project/blah.git#commit-ishgit+https://user@hostname/project/blah.git#commit-ish\n```\n\nExample:\n```bash\nnpm install . -g\n```\n\nExample:\n```bash\nnpm link\n```\n\nExample:\n```bash\ncd ../some-other-foldernpm install ../my-package\n```\n\nExample:\n```bash\nnpm install --install-strategy=linkednpm test\n```\n\nExample:\n```bash\nnpm publish\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.392Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":119}}78{"id":"doc-config_npm_docs-df3e1c6a","source":"documentation","title":"Config | npm Docs","url":"https://docs.npmjs.com/cli/v12/using-npm/config","text":"Example:\n```bash\nnpm ls --par# same as:npm ls --parseable\n```\n\nExample:\n```bash\nnpm ls -gpld# same as:npm ls --global --parseable --long --loglevel info\n```\n\nExample:\n```ini\nca=\"-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----\"\n```\n\nExample:\n```ini\nca[]=\"...\"ca[]=\"...\"\n```\n\nExample:\n```bash\nnpm exec --package yo --package generator-node --call \"yo node\"\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\nExample:\n```ini\ncert=\"-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----\"\n```\n\nExample:\n```ini\nkey=\"-----BEGIN PRIVATE KEY-----\\nXXXX\\nXXXX\\n-----END PRIVATE KEY-----\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.398Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":10,"totalLines":52,"estimatedTokens":264}}79{"id":"doc-npm_edit_npm_docs-2eb0d20b","source":"documentation","title":"npm-edit | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-edit","text":"Example:\n```bash\nnpm edit <pkg>[/<subpkg>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.398Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":16}}80{"id":"doc-npm_get_npm_docs-d3262c9d","source":"documentation","title":"npm-get | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-get","text":"Example:\n```bash\nnpm get [<key> ...] (See `npm config`)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.398Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":19}}81{"id":"doc-npm_deny_scripts_npm_docs-12340b92","source":"documentation","title":"npm-deny-scripts | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-deny-scripts","text":"Example:\n```bash\nnpm deny-scripts <pkg> [<pkg> ...]npm deny-scripts --all\n```\n\nExample:\n```bash\n# Deny a specific package outrightnpm deny-scripts telemetry-pkg\n# Deny everything that has install scripts and isn't already approvednpm deny-scripts --all\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.398Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":68}}82{"id":"doc-npm_explain_npm_docs-609197f3","source":"documentation","title":"npm-explain | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-explain","text":"Example:\n```bash\nnpm explain <package-spec>\nalias: why\n```\n\nExample:\n```bash\nglob@7.1.6node_modules/glob glob@\"^7.1.4\" from the root project\nglob@7.1.1 devnode_modules/tacks/node_modules/glob glob@\"^7.0.5\" from rimraf@2.6.2 node_modules/tacks/node_modules/rimraf rimraf@\"^2.6.2\" from tacks@1.3.0 node_modules/tacks dev tacks@\"^1.3.0\" from the root project\n```\n\nExample:\n```bash\n$ npm explain node_modules/nyc/node_modules/find-upfind-up@3.0.0 devnode_modules/nyc/node_modules/find-up find-up@\"^3.0.0\" from nyc@14.1.1 node_modules/nyc nyc@\"^14.1.1\" from tap@14.10.8 node_modules/tap dev tap@\"^14.10.8\" from the root project\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.398Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":167}}83{"id":"doc-npm_dist_tag_npm_docs-3f844118","source":"documentation","title":"npm-dist-tag | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-dist-tag","text":"Example:\n```bash\nnpm dist-tag add <package-spec (with version)> [<tag>]npm dist-tag rm <package-spec> <tag>npm dist-tag ls [<package-spec>]\nalias: dist-tags\n```\n\nExample:\n```bash\nnpm install <name>@<tag>\n```\n\nExample:\n```bash\nnpm install --tag <tag>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.399Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":67}}84{"id":"doc-npm_help_npm_docs-fffb5199","source":"documentation","title":"npm-help | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-help","text":"Example:\n```bash\nnpm help <term> [<terms..>]\nalias: hlep\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.399Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":19}}85{"id":"doc-npm_init_npm_docs-52d7814a","source":"documentation","title":"npm-init | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-init","text":"Example:\n```bash\nnpm init <package-spec> (same as `npx create-<package-spec>`)npm init <@scope> (same as `npx <@scope>/create`)\naliases: create, innit\n```\n\nExample:\n```bash\n$ npm init react-app ./my-react-app\n```\n\nExample:\n```bash\n$ mkdir my-esm-lib && cd my-esm-lib$ npm init esm --yes\n```\n\nExample:\n```bash\n$ mkdir my-npm-pkg && cd my-npm-pkg$ git init$ npm init\n```\n\nExample:\n```bash\n$ npm init -y\n```\n\nExample:\n```bash\n$ npm init --init-private -y\n```\n\nExample:\n```bash\n.+-- package.json\n```\n\nExample:\n```bash\n$ npm init -w packages/a\n```\n\nExample:\n```bash\n.+-- package.json`-- packages `-- a `-- package.json\n```\n\nExample:\n```bash\nnpm init -w packages/my-react-app react-app .\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json `-- my-react-app +-- README +-- package.json `-- ...\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.399Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":13,"totalLines":68,"estimatedTokens":306}}86{"id":"doc-npm_fund_npm_docs-81aed0ee","source":"documentation","title":"npm-fund | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-fund","text":"Example:\n```bash\nnpm fund [<package-spec>]\n```\n\nExample:\n```bash\n$ npm fundtest-workspaces-fund@1.0.0+-- https://example.com/a| | `-- a@1.0.0| `-- https://example.com/maintainer| `-- foo@1.0.0+-- https://example.com/npmcli-funding| `-- @npmcli/test-funding`-- https://example.com/org `-- bar@2.0.0\n```\n\nExample:\n```bash\n$ npm fund -w atest-workspaces-fund@1.0.0`-- https://example.com/a | `-- a@1.0.0 `-- https://example.com/maintainer `-- foo@2.0.0\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.400Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":121}}87{"id":"doc-npm_help_search_npm_docs-4023c4a2","source":"documentation","title":"npm-help-search | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-help-search","text":"Example:\n```bash\nnpm help-search <text>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.400Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}88{"id":"doc-npm_deprecate_npm_docs-076fd68a","source":"documentation","title":"npm-deprecate | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-deprecate","text":"Example:\n```bash\nnpm deprecate <package-spec> <message>\n```\n\nExample:\n```bash\nnpm deprecate my-thing@\"< 0.2.3\" \"critical bug fixed in v0.2.3\"\n```\n\nExample:\n```bash\nnpm deprecate my-thing@1.x \"1.x is no longer supported\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.400Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":60}}89{"id":"doc-npm_doctor_npm_docs-350cbd21","source":"documentation","title":"npm-doctor | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-doctor","text":"Example:\n```bash\nnpm doctor [connection] [registry] [versions] [environment] [permissions] [cache]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.400Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":29}}90{"id":"doc-npm_ping_npm_docs-04dbffca","source":"documentation","title":"npm-ping | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-ping","text":"Example:\n```bash\nnpm ping\n```\n\nExample:\n```bash\nnpm notice PING https://registry.npmjs.org/npm notice PONG 255ms\n```\n\nExample:\n```bash\nnpm notice PING http://foo.com/npm ERR! code E404npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.400Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":67}}91{"id":"doc-npm_org_npm_docs-9532884b","source":"documentation","title":"npm-org | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-org","text":"Example:\n```bash\nnpm org set orgname username [developer | admin | owner]npm org rm orgname usernamenpm org ls orgname [<username>]\nalias: ogr\n```\n\nExample:\n```bash\n$ npm org set my-org @mx-smith\n```\n\nExample:\n```bash\n$ npm org set my-org @mx-santos admin\n```\n\nExample:\n```bash\n$ npm org rm my-org mx-santos\n```\n\nExample:\n```bash\n$ npm org ls my-org\n```\n\nExample:\n```bash\n$ npm org ls my-org --json\n```\n\nExample:\n```bash\n$ npm org ls my-org @mx-santos\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.401Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":118}}92{"id":"doc-npm_patch_npm_docs-3c71de23","source":"documentation","title":"npm-patch | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-patch","text":"Example:\n```bash\nnpm patch <pkg>[@<version>]npm patch add <pkg>[@<version>] [--edit-dir <path>] [--ignore-existing]npm patch commit <edit-dir> [--patches-dir <dir>] [--keep-edit-dir]npm patch update <pkg>[@<old-version>] [--to <new-version>] [--patches-dir <dir>]npm patch lsnpm patch rm <pkg>[@<version>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.401Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":81}}93{"id":"doc-npm_login_npm_docs-ed9ad54f","source":"documentation","title":"npm-login | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-login","text":"Example:\n```bash\nnpm login\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.401Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":102}}94{"id":"doc-npm_exec_npm_docs-0c842d77","source":"documentation","title":"npm-exec | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-exec","text":"Example:\n```bash\nnpm exec -- <pkg>[@<version>] [args...]npm exec --package=<pkg>[@<version>] -- <cmd> [args...]npm exec -c '<cmd> [args...]'npm exec --package=foo -c '<cmd> [args...]'\nalias: x\n```\n\nExample:\n```bash\nnpm exec --package yo --package generator-node --call \"yo node\"\n```\n\nExample:\n```bash\n$ npm exec -- tap --bail test/foo.js$ npx tap --bail test/foo.js\n```\n\nExample:\n```bash\n$ npm exec --package=foo -- bar --bar-argument# ~ or ~$ npx --package=foo bar --bar-argument\n```\n\nExample:\n```bash\n$ npm x -c 'eslint && say \"hooray, lint passed\"'$ npx -c 'eslint && say \"hooray, lint passed\"'\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json +-- b | `-- package.json `-- c `-- package.json\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"./packages/*\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.402Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":206}}95{"id":"doc-npm_owner_npm_docs-3774127f","source":"documentation","title":"npm-owner | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-owner","text":"Example:\n```bash\nnpm owner add <user> <package-spec>npm owner rm <user> <package-spec>npm owner ls <package-spec>\nalias: author\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.402Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":37}}96{"id":"doc-transferring_a_package_from_a_user_account_to_an-a5ae9b7f","source":"documentation","title":"Transferring a package from a user account to another user account | npm Docs","url":"https://docs.npmjs.com/transferring-a-package-from-a-user-account-to-another-user-account","text":"Example:\n```bash\nnpm owner add <their-username> <package-name>\n# new maintainer accepts invitation\nnpm owner rm <your-username> <package-name>\n```\n\nExample:\n```bash\nnpm owner add <their-username> <package-name> --otp=123456\n# new maintainer accepts invitation\nnpm owner rm <your-username> <package-name> --otp=123456\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.403Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":15,"estimatedTokens":84}}97{"id":"doc-generating_provenance_statements_npm_docs-72a203bb","source":"documentation","title":"Generating provenance statements | npm Docs","url":"https://docs.npmjs.com/generating-provenance-statements","text":"Example:\n```yaml\npermissions: id-token: write\n```\n\nExample:\n```yaml\nruns-on: ubuntu-latest\n```\n\nExample:\n```sh\nnpm publish --provenance\n```\n\nExample:\n```sh\nnpm publish --provenance --access public\n```\n\nExample:\n```yaml\nname: Publish Package to npmjson: release: types: [published]jobs: build: runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: node-version: '24.x' registry-url: 'https://registry.npmjs.org' package-manager-cache: false # never use caching in release builds - run: npm ci - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n\nExample:\n```json\n\"publishConfig\": { \"provenance\": true},\n```\n\nExample:\n```ini\nprovenance=true\n```\n\nExample:\n```yaml\npublish: image: 'node:20' rules: - if: $CI_COMMIT_TAG id_tokens: SIGSTORE_ID_TOKEN: aud: sigstore script: - npm config set //registry.npmjs.org/:_authToken \"$NPM_TOKEN\" - npm publish --provenance --access public\n```\n\nExample:\n```bash\naudited 1267 packages in 6s\n1267 packages have verified registry signatures\n74 packages have verified attestations\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.404Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":48,"estimatedTokens":319}}98{"id":"doc-using_private_packages_in_a_ci_cd_workflow_npm_d-58ec127d","source":"documentation","title":"Using private packages in a CI/CD workflow | npm Docs","url":"https://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow","text":"Example:\n```bash\nsteps: - run: | npm install - env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.404Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":30}}99{"id":"doc-npm_ci_npm_docs-8db1a9da","source":"documentation","title":"npm-ci | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-ci","text":"Example:\n```bash\nnpm ci\naliases: clean-install, ic, install-clean, isntall-clean\n```\n\nExample:\n```bash\n$ cd ./my/npm/project$ npm installadded 154 packages in 10s$ ls | grep package-lock\n```\n\nExample:\n```bash\n$ npm ciadded 154 packages in 5s\n```\n\nExample:\n```bash\n# .travis.ymlinstall:- npm ci# keep the npm cache around to speed up installscache: directories: - \"$HOME/.npm\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.405Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":99}}100{"id":"doc-npm_cache_npm_docs-d92921e0","source":"documentation","title":"npm-cache | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-cache","text":"Example:\n```bash\nnpm cache add <package-spec>npm cache clean [<key>]npm cache ls [<name>@<version>]npm cache verifynpm cache npx lsnpm cache npx rm [<key>...]npm cache npx info <key>...\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.406Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":51}}101{"id":"doc-npm_dedupe_npm_docs-1c76a4ca","source":"documentation","title":"npm-dedupe | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-dedupe","text":"Example:\n```bash\nnpm dedupe\nalias: ddp\n```\n\nExample:\n```bash\na+-- b <-- depends on c@1.0.x| `-- c@1.0.3`-- d <-- depends on c@~1.0.9 `-- c@1.0.10\n```\n\nExample:\n```bash\na+-- b+-- d`-- c@1.0.10\n```\n\nExample:\n```bash\na+-- b <-- depends on c@1.0.x+-- c@1.0.3`-- d <-- depends on c@1.x `-- c@1.9.9\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.407Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":80}}102{"id":"doc-npm_diff_npm_docs-3ef276e9","source":"documentation","title":"npm-diff | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-diff","text":"Example:\n```bash\nnpm diff [...<paths>]\n```\n\nExample:\n```bash\nnpm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1\n```\n\nExample:\n```bash\ndiff --git a/package.json b/package.jsonindex v1.1.0..v1.1.1 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@ { \"name\": \"abbrev\",- \"version\": \"1.1.0\",+ \"version\": \"1.1.1\", \"description\": \"Like ruby's abbrev module, but in js\", \"author\": \"Isaac Z. Schlueter <i@izs.me>\", \"main\": \"abbrev.js\",\n```\n\nExample:\n```bash\nnpm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-path\n```\n\nExample:\n```bash\nnpm diff --diff=abbrev\n```\n\nExample:\n```bash\nnpm diff --diff=pkg@2.0.0\n```\n\nExample:\n```bash\nnpm diff --diff=1.0.0 --diff=1.1.0\n```\n\nExample:\n```bash\nnpm diff --diff=pkg@2 ./lib/ CHANGELOG.md\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.407Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":192}}103{"id":"doc-npm_explore_npm_docs-7d0aef9c","source":"documentation","title":"npm-explore | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-explore","text":"Example:\n```bash\nnpm explore <pkg> [ -- <command>]\n```\n\nExample:\n```bash\nnpm explore some-dependency -- git pull origin master\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.408Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":36}}104{"id":"doc-npm_approve_scripts_npm_docs-aa905e5c","source":"documentation","title":"npm-approve-scripts | npm Docs","url":"https://docs.npmjs.com/cli/v12/commands/npm-approve-scripts","text":"Example:\n```bash\nnpm approve-scripts <pkg> [<pkg> ...]npm approve-scripts --allnpm approve-scripts --allow-scripts-pending\n```\n\nExample:\n```bash\n# Approve all currently-installed install scripts after reviewing themnpm approve-scripts --all\n# Approve specific packages, pinned to their installed versionnpm approve-scripts canvas sharp\n# Approve name-only (any version of this package is allowed)npm approve-scripts --no-allow-scripts-pin canvas\n# Preview which packages still need reviewnpm approve-scripts --allow-scripts-pending\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.408Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":14,"estimatedTokens":138}}105{"id":"doc-npm_version_npm_docs-0c5be60c","source":"documentation","title":"npm-version | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-version","text":"Example:\n```bash\nnpm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]\nalias: verison\n```\n\nExample:\n```bash\nnpm version patch -m \"Upgrade to %s for reasons\"\n```\n\nExample:\n```bash\n$ npm config set sign-git-tag true$ npm version patch\nYou need a passphrase to unlock the secret key foruser: \"isaacs (http://blog.izs.me/) <i@izs.me>\"2048-bit RSA key, ID 6C481CF6, created 2010-08-31\nEnter passphrase:\n```\n\nExample:\n```json\n{ \"scripts\": { \"preversion\": \"npm test\", \"version\": \"npm run build && git add -A dist\", \"postversion\": \"git push && git push --tags && rm -rf build/temp\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.409Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":24,"estimatedTokens":165}}106{"id":"doc-npm_ping_npm_docs-288f94fb","source":"documentation","title":"npm-ping | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-ping","text":"Example:\n```bash\nnpm ping\n```\n\nExample:\n```bash\nnpm notice PING https://registry.npmjs.org/npm notice PONG 255ms\n```\n\nExample:\n```bash\nnpm notice PING http://foo.com/npm ERR! code E404npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.409Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":67}}107{"id":"doc-npm_repo_npm_docs-dc030a37","source":"documentation","title":"npm-repo | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-repo","text":"Example:\n```bash\nnpm repo [<pkgname> [<pkgname> ...]]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.410Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":18}}108{"id":"doc-npm_profile_npm_docs-6e8e647b","source":"documentation","title":"npm-profile | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-profile","text":"Example:\n```bash\nnpm profile enable-2fa [auth-only|auth-and-writes]npm profile disable-2fanpm profile get [<key>]npm profile set <key> <value>\n```\n\nExample:\n```bash\nname: exampleemail: e@example.com (verified)two-factor auth: auth-and-writesfullname: Example Userhomepage:freenode:twitter:github:created: 2015-02-26T01:38:35.892Zupdated: 2017-10-02T21:29:45.922Z\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.410Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":95}}109{"id":"doc-npm_shrinkwrap_npm_docs-9caf540e","source":"documentation","title":"npm-shrinkwrap | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-shrinkwrap","text":"Example:\n```bash\nnpm shrinkwrap\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.410Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":13}}110{"id":"doc-npm_completion_npm_docs-28617d82","source":"documentation","title":"npm-completion | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-completion","text":"Example:\n```bash\nnpm completion\n```\n\nExample:\n```bash\nnpm completion >> ~/.bashrcnpm completion >> ~/.zshrc\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.410Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":32}}111{"id":"doc-npm_access_npm_docs-37abfc81","source":"documentation","title":"npm-access | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-access","text":"Example:\n```bash\nnpm access list packages [<user>|<scope>|<scope:team>] [<package>]npm access list collaborators [<package> [<user>]]npm access get status [<package>]npm access set status=public|private [<package>]npm access set mfa=none|publish|automation [<package>]npm access grant <read-only|read-write> <scope:team> [<package>]npm access revoke <scope:team> [<package>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.411Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":98}}112{"id":"doc-npm_approve_scripts_npm_docs-e344dc8d","source":"documentation","title":"npm-approve-scripts | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-approve-scripts","text":"Example:\n```bash\nnpm approve-scripts <pkg> [<pkg> ...]npm approve-scripts --allnpm approve-scripts --allow-scripts-pending\n```\n\nExample:\n```bash\n# Approve all currently-installed install scripts after reviewing themnpm approve-scripts --all\n# Approve specific packages, pinned to their installed versionnpm approve-scripts canvas sharp\n# Approve name-only (any version of this package is allowed)npm approve-scripts --no-allow-scripts-pin canvas\n# Preview which packages still need reviewnpm approve-scripts --allow-scripts-pending\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.411Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":14,"estimatedTokens":138}}113{"id":"doc-npm_docs_npm_docs-84b80e99","source":"documentation","title":"npm-docs | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-docs","text":"Example:\n```bash\nnpm docs [<pkgname> [<pkgname> ...]]\nalias: home\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.411Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":21}}114{"id":"doc-npm_bugs_npm_docs-063ea89d","source":"documentation","title":"npm-bugs | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-bugs","text":"Example:\n```bash\nnpm bugs [<pkgname> [<pkgname> ...]]\nalias: issues\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.411Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":22}}115{"id":"doc-npm_cache_npm_docs-b31a1639","source":"documentation","title":"npm-cache | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-cache","text":"Example:\n```bash\nnpm cache add <package-spec>npm cache clean [<key>]npm cache ls [<name>@<version>]npm cache verifynpm cache npx lsnpm cache npx rm [<key>...]npm cache npx info <key>...\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.412Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":51}}116{"id":"doc-npm_explain_npm_docs-7aa9157a","source":"documentation","title":"npm-explain | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-explain","text":"Example:\n```bash\nnpm explain <package-spec>\nalias: why\n```\n\nExample:\n```bash\nglob@7.1.6node_modules/glob glob@\"^7.1.4\" from the root project\nglob@7.1.1 devnode_modules/tacks/node_modules/glob glob@\"^7.0.5\" from rimraf@2.6.2 node_modules/tacks/node_modules/rimraf rimraf@\"^2.6.2\" from tacks@1.3.0 node_modules/tacks dev tacks@\"^1.3.0\" from the root project\n```\n\nExample:\n```bash\n$ npm explain node_modules/nyc/node_modules/find-upfind-up@3.0.0 devnode_modules/nyc/node_modules/find-up find-up@\"^3.0.0\" from nyc@14.1.1 node_modules/nyc nyc@\"^14.1.1\" from tap@14.10.8 node_modules/tap dev tap@\"^14.10.8\" from the root project\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.412Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":167}}117{"id":"doc-npm_explore_npm_docs-4425e556","source":"documentation","title":"npm-explore | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-explore","text":"Example:\n```bash\nnpm explore <pkg> [ -- <command>]\n```\n\nExample:\n```bash\nnpm explore some-dependency -- git pull origin master\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.412Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":36}}118{"id":"doc-npm_audit_npm_docs-61e3ecae","source":"documentation","title":"npm-audit | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-audit","text":"Example:\n```bash\nnpm audit [fix|signatures]\n```\n\nExample:\n```bash\n$ npm audit signatures\n```\n\nExample:\n```bash\n$ npm audit signatures --json --include-attestations\n```\n\nExample:\n```json\n\"dist\":{ \"..omitted..\": \"..omitted..\", \"signatures\": [{ \"keyid\": \"SHA256:{{SHA256_PUBLIC_KEY}}\", \"sig\": \"a312b9c3cb4a1b693e8ebac5ee1ca9cc01f2661c14391917dcb111517f72370809...\" }]}\n```\n\nExample:\n```bash\n{ \"keys\": [{ \"expires\": null, \"keyid\": \"SHA256:{{SHA256_PUBLIC_KEY}}\", \"keytype\": \"ecdsa-sha2-nistp256\", \"scheme\": \"ecdsa-sha2-nistp256\", \"key\": \"{{B64_PUBLIC_KEY}}\" }]}\n```\n\nExample:\n```bash\n$ npm audit fix\n```\n\nExample:\n```bash\n$ npm audit fix --package-lock-only\n```\n\nExample:\n```bash\n$ npm audit fix --only=prod\n```\n\nExample:\n```bash\n$ npm audit fix --force\n```\n\nExample:\n```bash\n$ npm audit fix --dry-run --json\n```\n\nExample:\n```bash\n$ npm audit\n```\n\nExample:\n```bash\n$ npm audit --json\n```\n\nExample:\n```bash\n$ npm audit --audit-level=moderate\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.413Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":13,"totalLines":66,"estimatedTokens":245}}119{"id":"doc-npm_ci_npm_docs-f97d619a","source":"documentation","title":"npm-ci | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-ci","text":"Example:\n```bash\nnpm ci\naliases: clean-install, ic, install-clean, isntall-clean\n```\n\nExample:\n```bash\n$ cd ./my/npm/project$ npm installadded 154 packages in 10s$ ls | grep package-lock\n```\n\nExample:\n```bash\n$ npm ciadded 154 packages in 5s\n```\n\nExample:\n```bash\n# .travis.ymlinstall:- npm ci# keep the npm cache around to speed up installscache: directories: - \"$HOME/.npm\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.413Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":99}}120{"id":"doc-npm_deny_scripts_npm_docs-074ad12e","source":"documentation","title":"npm-deny-scripts | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-deny-scripts","text":"Example:\n```bash\nnpm deny-scripts <pkg> [<pkg> ...]npm deny-scripts --all\n```\n\nExample:\n```bash\n# Deny a specific package outrightnpm deny-scripts telemetry-pkg\n# Deny everything that has install scripts and isn't already approvednpm deny-scripts --all\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.414Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":68}}121{"id":"doc-npm_edit_npm_docs-6f8e405d","source":"documentation","title":"npm-edit | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-edit","text":"Example:\n```bash\nnpm edit <pkg>[/<subpkg>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.414Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":16}}122{"id":"doc-npm_deprecate_npm_docs-53e06547","source":"documentation","title":"npm-deprecate | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-deprecate","text":"Example:\n```bash\nnpm deprecate <package-spec> <message>\n```\n\nExample:\n```bash\nnpm deprecate my-thing@\"< 0.2.3\" \"critical bug fixed in v0.2.3\"\n```\n\nExample:\n```bash\nnpm deprecate my-thing@1.x \"1.x is no longer supported\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.414Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":60}}123{"id":"doc-npm_config_npm_docs-1fc28ddb","source":"documentation","title":"npm-config | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-config","text":"Example:\n```bash\nnpm config set <key>=<value> [<key>=<value> ...]npm config get [<key> [<key> ...]]npm config delete <key> [<key> ...]npm config list [--json]npm config editnpm config fix\nalias: c\n```\n\nExample:\n```bash\nnpm config set key=value [key=value...]npm set key=value [key=value...]\n```\n\nExample:\n```bash\nnpm config get [key ...]npm get [key ...]\n```\n\nExample:\n```bash\nnpm config list\n```\n\nExample:\n```bash\nnpm config delete key [key ...]\n```\n\nExample:\n```bash\nnpm config edit\n```\n\nExample:\n```bash\nnpm config fix\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.414Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":135}}124{"id":"doc-npm_dist_tag_npm_docs-2927e634","source":"documentation","title":"npm-dist-tag | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-dist-tag","text":"Example:\n```bash\nnpm dist-tag add <package-spec (with version)> [<tag>]npm dist-tag rm <package-spec> <tag>npm dist-tag ls [<package-spec>]\nalias: dist-tags\n```\n\nExample:\n```bash\nnpm install <name>@<tag>\n```\n\nExample:\n```bash\nnpm install --tag <tag>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.415Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":67}}125{"id":"doc-npm_diff_npm_docs-b74573bd","source":"documentation","title":"npm-diff | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-diff","text":"Example:\n```bash\nnpm diff [...<paths>]\n```\n\nExample:\n```bash\nnpm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1\n```\n\nExample:\n```bash\ndiff --git a/package.json b/package.jsonindex v1.1.0..v1.1.1 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@ { \"name\": \"abbrev\",- \"version\": \"1.1.0\",+ \"version\": \"1.1.1\", \"description\": \"Like ruby's abbrev module, but in js\", \"author\": \"Isaac Z. Schlueter <i@izs.me>\", \"main\": \"abbrev.js\",\n```\n\nExample:\n```bash\nnpm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-path\n```\n\nExample:\n```bash\nnpm diff --diff=abbrev\n```\n\nExample:\n```bash\nnpm diff --diff=pkg@2.0.0\n```\n\nExample:\n```bash\nnpm diff --diff=1.0.0 --diff=1.1.0\n```\n\nExample:\n```bash\nnpm diff --diff=pkg@2 ./lib/ CHANGELOG.md\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.415Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":192}}126{"id":"doc-npm_doctor_npm_docs-d3d1a620","source":"documentation","title":"npm-doctor | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-doctor","text":"Example:\n```bash\nnpm doctor [connection] [registry] [versions] [environment] [permissions] [cache]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.415Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":29}}127{"id":"doc-npm_find_dupes_npm_docs-40a783c6","source":"documentation","title":"npm-find-dupes | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-find-dupes","text":"Example:\n```bash\nnpm find-dupes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.416Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":13}}128{"id":"doc-npm_dedupe_npm_docs-ae7f0fda","source":"documentation","title":"npm-dedupe | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-dedupe","text":"Example:\n```bash\nnpm dedupe\nalias: ddp\n```\n\nExample:\n```bash\na+-- b <-- depends on c@1.0.x| `-- c@1.0.3`-- d <-- depends on c@~1.0.9 `-- c@1.0.10\n```\n\nExample:\n```bash\na+-- b+-- d`-- c@1.0.10\n```\n\nExample:\n```bash\na+-- b <-- depends on c@1.0.x+-- c@1.0.3`-- d <-- depends on c@1.x `-- c@1.9.9\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.416Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":80}}129{"id":"doc-npm_exec_npm_docs-d5bb70db","source":"documentation","title":"npm-exec | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-exec","text":"Example:\n```bash\nnpm exec -- <pkg>[@<version>] [args...]npm exec --package=<pkg>[@<version>] -- <cmd> [args...]npm exec -c '<cmd> [args...]'npm exec --package=foo -c '<cmd> [args...]'\nalias: x\n```\n\nExample:\n```bash\nnpm exec --package yo --package generator-node --call \"yo node\"\n```\n\nExample:\n```bash\n$ npm exec -- tap --bail test/foo.js$ npx tap --bail test/foo.js\n```\n\nExample:\n```bash\n$ npm exec --package=foo -- bar --bar-argument# ~ or ~$ npx --package=foo bar --bar-argument\n```\n\nExample:\n```bash\n$ npm x -c 'eslint && say \"hooray, lint passed\"'$ npx -c 'eslint && say \"hooray, lint passed\"'\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json +-- b | `-- package.json `-- c `-- package.json\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"./packages/*\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.417Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":206}}130{"id":"doc-npm_get_npm_docs-b2588571","source":"documentation","title":"npm-get | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-get","text":"Example:\n```bash\nnpm get [<key> ...] (See `npm config`)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.417Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":19}}131{"id":"doc-npm_logout_npm_docs-37c6b9aa","source":"documentation","title":"npm-logout | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-logout","text":"Example:\n```bash\nnpm logout\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.417Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":102}}132{"id":"doc-npm_ping_npm_docs-6aae6c57","source":"documentation","title":"npm-ping | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-ping","text":"Example:\n```bash\nnpm ping\n```\n\nExample:\n```bash\nnpm notice PING https://registry.npmjs.org/npm notice PONG 255ms\n```\n\nExample:\n```bash\nnpm notice PING http://foo.com/npm ERR! code E404npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.417Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":67}}133{"id":"doc-npm_profile_npm_docs-77f5b6d3","source":"documentation","title":"npm-profile | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-profile","text":"Example:\n```bash\nnpm profile enable-2fa [auth-only|auth-and-writes]npm profile disable-2fanpm profile get [<key>]npm profile set <key> <value>\n```\n\nExample:\n```bash\n+-----------------+---------------------------+| name | example |+-----------------+---------------------------+| email | me@example.com (verified) |+-----------------+---------------------------+| two factor auth | auth-and-writes |+-----------------+---------------------------+| fullname | Example User |+-----------------+---------------------------+| homepage | |+-----------------+---------------------------+| freenode | |+-----------------+---------------------------+| twitter | |+-----------------+---------------------------+| github | |+-----------------+---------------------------+| created | 2015-02-26T01:38:35.892Z |+-----------------+---------------------------+| updated | 2017-10-02T21:29:45.922Z |+-----------------+---------------------------+\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.418Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":293}}134{"id":"doc-npm_org_npm_docs-4b6f219c","source":"documentation","title":"npm-org | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-org","text":"Example:\n```bash\nnpm org set orgname username [developer | admin | owner]npm org rm orgname usernamenpm org ls orgname [<username>]\nalias: ogr\n```\n\nExample:\n```bash\n$ npm org set my-org @mx-smith\n```\n\nExample:\n```bash\n$ npm org set my-org @mx-santos admin\n```\n\nExample:\n```bash\n$ npm org rm my-org mx-santos\n```\n\nExample:\n```bash\n$ npm org ls my-org\n```\n\nExample:\n```bash\n$ npm org ls my-org --json\n```\n\nExample:\n```bash\n$ npm org ls my-org @mx-santos\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.418Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":118}}135{"id":"doc-npm_owner_npm_docs-2ea35cf7","source":"documentation","title":"npm-owner | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-owner","text":"Example:\n```bash\nnpm owner add <user> <package-spec>npm owner rm <user> <package-spec>npm owner ls <package-spec>\nalias: author\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.418Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":37}}136{"id":"doc-npm_pack_npm_docs-155c1b28","source":"documentation","title":"npm-pack | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-pack","text":"Example:\n```bash\nnpm pack <package-spec>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.418Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}137{"id":"doc-npm_prune_npm_docs-401ea75c","source":"documentation","title":"npm-prune | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-prune","text":"Example:\n```bash\nnpm prune [[<@scope>/]<pkg>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.418Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}138{"id":"doc-npm_publish_npm_docs-b0867117","source":"documentation","title":"npm-publish | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-publish","text":"Example:\n```bash\nnpm publish <package-spec>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.419Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":16}}139{"id":"doc-npm_install_ci_test_npm_docs-2acb3ad4","source":"documentation","title":"npm-install-ci-test | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-install-ci-test","text":"Example:\n```bash\nnpm install-ci-test\nalias: cit\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.419Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":17}}140{"id":"doc-npm_prefix_npm_docs-cbb169df","source":"documentation","title":"npm-prefix | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-prefix","text":"Example:\n```bash\nnpm prefix [-g]\n```\n\nExample:\n```bash\nnpm prefix/usr/local/projects/foo\n```\n\nExample:\n```bash\nnpm prefix -g/usr/local\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.419Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":38}}141{"id":"doc-npm_outdated_npm_docs-66841e17","source":"documentation","title":"npm-outdated | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-outdated","text":"Example:\n```bash\nnpm outdated [<package-spec> ...]\n```\n\nExample:\n```bash\n$ npm outdatedPackage Current Wanted Latest Location Depended byglob 5.0.15 5.0.15 6.0.1 node_modules/glob dependent-package-namenothingness 0.0.3 git git node_modules/nothingness dependent-package-namenpm 3.5.1 3.5.2 3.5.1 node_modules/npm dependent-package-namelocal-dev 0.0.3 linked linked local-dev dependent-package-nameonce 1.3.2 1.3.3 1.3.3 node_modules/once dependent-package-name\n```\n\nExample:\n```json\n{ \"glob\": \"^5.0.15\", \"nothingness\": \"github:othiym23/nothingness#master\", \"npm\": \"^3.5.1\", \"once\": \"^1.3.1\"}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.420Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":190}}142{"id":"doc-npm_ls_npm_docs-b37ba2ff","source":"documentation","title":"npm-ls | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-ls","text":"Example:\n```bash\nnpm ls <package-spec>\nalias: list\n```\n\nExample:\n```bash\nnpm@8.19.4 /path/to/npm└─┬ init-package-json@0.0.4 └── promzard@0.1.5\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.421Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":41}}143{"id":"doc-npm_init_npm_docs-8a4c1c58","source":"documentation","title":"npm-init | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-init","text":"Example:\n```bash\nnpm init <package-spec> (same as `npx <package-spec>)npm init <@scope> (same as `npx <@scope>/create`)\naliases: create, innit\n```\n\nExample:\n```bash\n$ npm init react-app ./my-react-app\n```\n\nExample:\n```bash\n$ mkdir my-esm-lib && cd my-esm-lib$ npm init esm --yes\n```\n\nExample:\n```bash\n$ mkdir my-npm-pkg && cd my-npm-pkg$ git init$ npm init\n```\n\nExample:\n```bash\n$ npm init -y\n```\n\nExample:\n```bash\n.+-- package.json\n```\n\nExample:\n```bash\n$ npm init -w packages/a\n```\n\nExample:\n```bash\n.+-- package.json`-- packages `-- a `-- package.json\n```\n\nExample:\n```bash\nnpm init -w packages/my-react-app react-app .\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json `-- my-react-app +-- README +-- package.json `-- ...\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.421Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":12,"totalLines":63,"estimatedTokens":292}}144{"id":"doc-npm_pkg_npm_docs-d4534934","source":"documentation","title":"npm-pkg | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-pkg","text":"Example:\n```bash\nnpm pkg set <key>=<value> [<key>=<value> ...]npm pkg get [<key> [<key> ...]]npm pkg delete <key> [<key> ...]npm pkg set [<array>[<index>].<key>=<value> ...]npm pkg set [<array>[].<key>=<value> ...]\n```\n\nExample:\n```bash\nnpm pkg get name\n```\n\nExample:\n```bash\nnpm pkg get name version\n```\n\nExample:\n```bash\nnpm pkg get scripts.test\n```\n\nExample:\n```bash\nnpm pkg get contributors.email\n```\n\nExample:\n```bash\nnpm pkg get contributors[0].email\n```\n\nExample:\n```bash\nnpm pkg get \"exports[.].require\"\n```\n\nExample:\n```bash\nnpm pkg set bin.mynewcommand=cli.js\n```\n\nExample:\n```bash\nnpm pkg set description='Awesome package' engines.node='>=10'\n```\n\nExample:\n```bash\nnpm pkg set contributors[0].name='Foo' contributors[0].email='foo@bar.ca'\n```\n\nExample:\n```bash\nnpm pkg set contributors[].name='Foo' contributors[].name='Bar'\n```\n\nExample:\n```bash\nnpm pkg set private=true --json\n```\n\nExample:\n```bash\nnpm pkg set tap.timeout=60 --json\n```\n\nExample:\n```bash\nnpm pkg delete scripts.build\n```\n\nExample:\n```bash\nnpm pkg set funding=https://example.com --ws\n```\n\nExample:\n```bash\nnpm pkg get name version --ws{ \"a\": { \"name\": \"a\", \"version\": \"1.0.0\" }, \"b\": { \"name\": \"b\", \"version\": \"1.0.0\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.421Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":16,"totalLines":81,"estimatedTokens":309}}145{"id":"doc-npm_set_script_npm_docs-ee38478d","source":"documentation","title":"npm-set-script | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-set-script","text":"Example:\n```bash\nnpm set-script [<script>] [<command>]\n```\n\nExample:\n```json\n{ \"name\": \"my-project\", \"scripts\": { \"start\": \"http-server .\", \"test\": \"some existing value\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.422Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":50}}146{"id":"doc-npm_stop_npm_docs-fde737b2","source":"documentation","title":"npm-stop | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-stop","text":"Example:\n```bash\nnpm stop [-- <args>]\n```\n\nExample:\n```json\n{ \"scripts\": { \"stop\": \"node bar.js\" }}\n```\n\nExample:\n```bash\nnpm stop\n> npm@x.x.x stop> node bar.js\n(bar.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.422Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":54}}147{"id":"doc-removal_npm_docs-07460a56","source":"documentation","title":"removal | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/removal","text":"Example:\n```bash\nsudo npm uninstall npm -g\n```\n\nExample:\n```bash\nsudo make uninstall\n```\n\nExample:\n```bash\nrm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*\n```\n\nExample:\n```bash\nls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm\n```\n\nExample:\n```bash\nfind /usr/local/{lib/node,bin} -exec grep -l npm \\{\\} \\; ;\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.422Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":89}}148{"id":"doc-developers_npm_docs-9d2cb8b5","source":"documentation","title":"developers | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/developers","text":"Example:\n```bash\ngit://github.com/user/project.git#commit-ishgit+ssh://user@hostname:project.git#commit-ishgit+http://user@hostname/project/blah.git#commit-ishgit+https://user@hostname/project/blah.git#commit-ish\n```\n\nExample:\n```bash\nnpm install . -g\n```\n\nExample:\n```bash\nnpm link\n```\n\nExample:\n```bash\ncd ../some-other-foldernpm install ../my-package\n```\n\nExample:\n```bash\nnpm adduser\n```\n\nExample:\n```bash\nnpm publish\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.423Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":110}}149{"id":"doc-scope_npm_docs-950b8b79","source":"documentation","title":"scope | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/scope","text":"Example:\n```bash\n@somescope/somepackagename\n```\n\nExample:\n```bash\nnpm install @myorg/mypackage\n```\n\nExample:\n```json\n\"dependencies\": { \"@myorg/mypackage\": \"^1.3.0\"}\n```\n\nExample:\n```javascript\nrequire(\"@myorg/mypackage\");\n```\n\nExample:\n```bash\nnpm login --registry=http://reg.example.com --scope=@myco\n```\n\nExample:\n```bash\nnpm config set @myco:registry http://reg.example.com\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.423Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":99}}150{"id":"doc-orgs_npm_docs-aeaf6667","source":"documentation","title":"orgs | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/orgs","text":"Example:\n```bash\nnpm team ls <org>:developers\n```\n\nExample:\n```bash\nnpm team create <org:team>\n```\n\nExample:\n```bash\nnpm team add <org:team> <user>\n```\n\nExample:\n```bash\nnpm init --scope=<org>\n```\n\nExample:\n```bash\nnpm access grant <read-only|read-write> <org:team> [<package>]\n```\n\nExample:\n```bash\nnpm access revoke <org:team> [<package>]\n```\n\nExample:\n```bash\nnpm access ls-packages <org> <user>\n```\n\nExample:\n```bash\nnpm access ls-packages <org:team>\n```\n\nExample:\n```bash\nnpm access ls-collaborators <pkg>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.423Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":46,"estimatedTokens":132}}151{"id":"doc-dependency_selector_syntax_querying_npm_docs-f0c1be93","source":"documentation","title":"Dependency Selector Syntax & Querying | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/dependency-selectors","text":"Example:\n```css\n/* return dependencies that have a `scripts.test` containing `\"tap\"` */*: attr(scripts, [test~=tap]);\n```\n\nExample:\n```css\n/* return dependencies that have a testling config for opera browsers */*: attr(testling, browsers, [~=opera]);\n```\n\nExample:\n```css\n/* removes the distinction between properties & arrays *//* ie. we'd have to check the property & iterate to match selection */*:attr([keywords^=react])*:attr(contributors, :attr([name~=Jordan]))\n```\n\nExample:\n```css\n/* return dependencies that have the exact keyword \"react\" *//* this is equivalent to `*:keywords([value=\"react\"])` */*: attr([keywords=react]);\n```\n\nExample:\n```css\n/* returns */*: attr(contributors, [email=ruyadorno @github.com]);\n```\n\nExample:\n```js\nconst Arborist = require(\"@npmcli/arborist\");const arb = new Arborist({});\n```\n\nExample:\n```js\n// root-levelarb.loadActual().then(async (tree) => { // query all production dependencies const results = await tree.querySelectorAll(\".prod\"); console.log(results);});\n```\n\nExample:\n```js\n// iterativearb.loadActual().then(async (tree) => { // query for the deduped version of react const results = await tree.querySelectorAll(\"#react:not(:deduped)\"); // query the deduped react for git deps const deps = await results[0].querySelectorAll(\":type(git)\"); console.log(deps);});\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.424Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":335}}152{"id":"doc-npm_unpublish_npm_docs-a4cafd0d","source":"documentation","title":"npm-unpublish | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-unpublish","text":"Example:\n```bash\nnpm unpublish [<package-spec>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.426Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}153{"id":"doc-npx_npm_docs-dc9c7900","source":"documentation","title":"npx | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npx","text":"Example:\n```bash\nnpx -- <pkg>[@<version>] [args...]npx --package=<pkg>[@<version>] -- <cmd> [args...]npx -c '<cmd> [args...]'npx --package=foo -c '<cmd> [args...]'\n```\n\nExample:\n```bash\n$ npm exec -- tap --bail test/foo.js$ npx tap --bail test/foo.js\n```\n\nExample:\n```bash\n$ npm exec --package=foo -- bar --bar-argument# ~ or ~$ npx --package=foo bar --bar-argument\n```\n\nExample:\n```bash\n$ npm x -c 'eslint && say \"hooray, lint passed\"'$ npx -c 'eslint && say \"hooray, lint passed\"'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.426Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":125}}154{"id":"doc-folders_npm_docs-93085d78","source":"documentation","title":"folders | npm Docs","url":"https://docs.npmjs.com/cli/v8/configuring-npm/folders","text":"Example:\n```bash\nfoo+-- blerg@1.2.5+-- bar@1.2.3| +-- blerg@1.x (latest=1.3.7)| +-- baz@2.x| | `-- quux@3.x| | `-- bar@1.2.3 (cycle)| `-- asdf@*`-- baz@1.2.3 `-- quux@3.x `-- bar\n```\n\nExample:\n```bash\nfoo+-- node_modules +-- blerg (1.2.5) <---[A] +-- bar (1.2.3) <---[B] | `-- node_modules | +-- baz (2.0.2) <---[C] | | `-- node_modules | | `-- quux (3.2.0) | `-- asdf (2.3.4) `-- baz (1.2.3) <---[D] `-- node_modules `-- quux (3.2.0) <---[E]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.427Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":141}}155{"id":"doc-npm_uninstall_npm_docs-91b3a223","source":"documentation","title":"npm-uninstall | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-uninstall","text":"Example:\n```bash\nnpm uninstall [<@scope>/]<pkg>...\naliases: unlink, remove, rm, r, un\n```\n\nExample:\n```bash\nnpm uninstall sax\n```\n\nExample:\n```bash\nnpm uninstall lodash --no-save\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.427Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":49}}156{"id":"doc-npmrc_npm_docs-a2b1ca2d","source":"documentation","title":"npmrc | npm Docs","url":"https://docs.npmjs.com/cli/v8/configuring-npm/npmrc","text":"Example:\n```bash\nprefix = ${HOME}/.npm-packages\n```\n\nExample:\n```bash\nkey[] = \"first value\"key[] = \"second value\"\n```\n\nExample:\n```bash\n# last modified: 01 Jan 2016; Set a new registry for a scoped package@myscope:registry=https://mycustomregistry.example.org\n```\n\nExample:\n```bash\n; bad config_authToken=MYTOKEN\n; good config@myorg:registry=https://somewhere-else.com/myorg@another:registry=https://somewhere-else.com/another//registry.npmjs.org/:_authToken=MYTOKEN; would apply to both @myorg and @another; //somewhere-else.com/:_authToken=MYTOKEN; would apply only to @myorg//somewhere-else.com/myorg/:_authToken=MYTOKEN1; would apply only to @another//somewhere-else.com/another/:_authToken=MYTOKEN2\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.427Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":181}}157{"id":"doc-npm_view_npm_docs-b4b7bbbf","source":"documentation","title":"npm-view | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-view","text":"Example:\n```bash\nnpm view [<package-spec>] [<field>[.subfield]...]\naliases: info, show, v\n```\n\nExample:\n```bash\nnpm view connect\n```\n\nExample:\n```bash\nnpm view ronn@0.3.5 dependencies\n```\n\nExample:\n```bash\nnpm view npm repository.url\n```\n\nExample:\n```bash\nnpm view opts@$(npm view ronn dependencies.opts)\n```\n\nExample:\n```bash\nnpm view express contributors.email\n```\n\nExample:\n```bash\nnpm view express contributors[0].email\n```\n\nExample:\n```bash\nnpm view express contributors.name contributors.email\n```\n\nExample:\n```bash\nnpm view npm contributors\n```\n\nExample:\n```bash\nnpm view yui3@'>0.5.4' dependencies.jsdom\n```\n\nExample:\n```bash\nnpm view connect versions\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.427Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":11,"totalLines":57,"estimatedTokens":170}}158{"id":"doc-install_npm_docs-bccb9e97","source":"documentation","title":"install | npm Docs","url":"https://docs.npmjs.com/cli/v8/configuring-npm/install","text":"Example:\n```bash\nnode -vnpm -v\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.428Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}159{"id":"doc-npm_update_npm_docs-ccc1763b","source":"documentation","title":"npm-update | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-update","text":"Example:\n```bash\nnpm update [<pkg>...]\naliases: up, upgrade, udpate\n```\n\nExample:\n```json\n{ \"dist-tags\": { \"latest\": \"1.2.2\" }, \"versions\": [ \"1.2.2\", \"1.2.1\", \"1.2.0\", \"1.1.2\", \"1.1.1\", \"1.0.0\", \"0.4.1\", \"0.4.0\", \"0.2.0\" ]}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^1.1.1\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"~1.1.1\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^0.2.0\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^0.4.0\"}\n```\n\nExample:\n```json\n{ \"name\": \"my-app\", \"dependencies\": { \"dep1\": \"^1.0.0\", \"dep2\": \"1.0.0\" }}\n```\n\nExample:\n```json\n{ \"name\": \"dep2\", \"dependencies\": { \"dep1\": \"~1.1.1\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.429Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":42,"estimatedTokens":175}}160{"id":"doc-scripts_npm_docs-201053e1","source":"documentation","title":"scripts | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/scripts","text":"Example:\n```json\n{ \"scripts\": { \"precompress\": \"{{ executes BEFORE the `compress` script }}\", \"compress\": \"{{ run command to compress files }}\", \"postcompress\": \"{{ executes AFTER `compress` script }}\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"dependencies\": { \"bar\": \"0.1.x\" }, \"scripts\": { \"start\": \"bar ./test\" }}\n```\n\nExample:\n```bash\nprocess.env.npm_package_scripts_install === \"foo.js\"\n```\n\nExample:\n```json\n{ \"scripts\": { \"install\": \"scripts/install.js\", \"postinstall\": \"scripts/install.js\", \"uninstall\": \"scripts/uninstall.js\" }}\n```\n\nExample:\n```json\n{ \"scripts\": { \"preinstall\": \"./configure\", \"install\": \"make && make install\", \"test\": \"make test\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.429Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":181}}161{"id":"doc-npm_query_npm_docs-1f9747be","source":"documentation","title":"npm-query | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-query","text":"Example:\n```bash\nnpm query <selector>\n```\n\nExample:\n```bash\n# find all dependencies with postinstall scripts & uninstall themnpm query \":attr(scripts, [postinstall])\" | jq 'map(.name)|join(\"\\n\")' -r | xargs -I {} npm uninstall {}\n# find all git dependencies & explain who requires themnpm query \":type(git)\" | jq 'map(.name)' | xargs -I {} npm why {}\n```\n\nExample:\n```stylus\n// all deps*\n// all direct deps:root > *\n// direct production deps:root > .prod\n// direct development deps:root > .dev\n// any peer dep of a direct deps:root > * > .peer\n// any workspace dep.workspace\n// all workspaces that depend on another workspace.workspace > .workspace\n// all workspaces that have peer deps.workspace:has(.peer)\n// any dep named \"lodash\"// equivalent to [name=\"lodash\"]#lodash\n// any deps named \"lodash\" & within semver range ^\"1.2.3\"#lodash@^1.2.3// equivalent to...[name=\"lodash\"]:semver(^1.2.3)\n// get the hoisted node for a given semver range#lodash@^1.2.3:not(:deduped)\n// querying deps with a specific version#lodash@2.1.5// equivalent to...[name=\"lodash\"][version=\"2.1.5\"]\n// has any deps:has(*)\n// deps with no other deps (ie. \"leaf\" nodes):empty\n// manually querying git dependencies[repository^=github:],[repository^=git:],[repository^=https://github.com],[repository^=http://github.com],[repository^=https://github.com],[repository^=+git:...]\n// querying for all git dependencies:type(git)\n// get production dependencies that aren't also dev deps.prod:not(.dev)\n// get dependencies with specific licenses[license=MIT], [license=ISC]\n// find all packages that have @ruyadorno as a contributor:attr(contributors, [email=ruyadorno@github.com])\n```\n\nExample:\n```json\n[ { \"name\": \"\", \"version\": \"\", \"description\": \"\", \"homepage\": \"\", \"bugs\": {}, \"author\": {}, \"license\": {}, \"funding\": {}, \"files\": [], \"main\": \"\", \"browser\": \"\", \"bin\": {}, \"man\": [], \"directories\": {}, \"repository\": {}, \"scripts\": {}, \"config\": {}, \"dependencies\": {}, \"devDependencies\": {}, \"optionalDependencies\": {}, \"bundledDependencies\": {}, \"peerDependencies\": {}, \"peerDependenciesMeta\": {}, \"engines\": {}, \"os\": [], \"cpu\": [], \"workspaces\": {}, \"keywords\": [], ... }, ...\n```\n\nExample:\n```sh\n$ npm query '#react' --expect-result-count=1\n```\n\nExample:\n```sh\n$ npm query ':root>:outdated(in-range).prod' --no-expect-results\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.430Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":55,"estimatedTokens":631}}162{"id":"doc-npm_pkg_npm_docs-0027f0e3","source":"documentation","title":"npm-pkg | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-pkg","text":"Example:\n```bash\nnpm pkg set <key>=<value> [<key>=<value> ...]npm pkg get [<key> [<key> ...]]npm pkg delete <key> [<key> ...]npm pkg set [<array>[<index>].<key>=<value> ...]npm pkg set [<array>[].<key>=<value> ...]npm pkg fix\n```\n\nExample:\n```bash\nnpm pkg get name\n```\n\nExample:\n```bash\nnpm pkg get name version\n```\n\nExample:\n```bash\nnpm pkg get scripts.test\n```\n\nExample:\n```bash\nnpm pkg get contributors.email\n```\n\nExample:\n```bash\nnpm pkg get contributors[0].email\n```\n\nExample:\n```bash\nnpm pkg get \"exports[.].require\"\n```\n\nExample:\n```bash\nnpm pkg set bin.mynewcommand=cli.js\n```\n\nExample:\n```bash\nnpm pkg set description='Awesome package' engines.node='>=10'\n```\n\nExample:\n```bash\nnpm pkg set contributors[0].name='Foo' contributors[0].email='foo@bar.ca'\n```\n\nExample:\n```bash\nnpm pkg set contributors[].name='Foo' contributors[].name='Bar'\n```\n\nExample:\n```bash\nnpm pkg set private=true --json\n```\n\nExample:\n```bash\nnpm pkg set tap.timeout=60 --json\n```\n\nExample:\n```bash\nnpm pkg delete scripts.build\n```\n\nExample:\n```bash\nnpm pkg set funding=https://example.com --ws\n```\n\nExample:\n```bash\nnpm pkg get name version --ws{ \"a\": { \"name\": \"a\", \"version\": \"1.0.0\" }, \"b\": { \"name\": \"b\", \"version\": \"1.0.0\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.430Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":16,"totalLines":81,"estimatedTokens":312}}163{"id":"doc-npm_unpublish_npm_docs-14a8d846","source":"documentation","title":"npm-unpublish | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-unpublish","text":"Example:\n```bash\nnpm unpublish [<package-spec>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.430Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}164{"id":"doc-npm_uninstall_npm_docs-1776b98d","source":"documentation","title":"npm-uninstall | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-uninstall","text":"Example:\n```bash\nnpm uninstall [<@scope>/]<pkg>...\naliases: unlink, remove, rm, r, un\n```\n\nExample:\n```bash\nnpm uninstall sax\n```\n\nExample:\n```bash\nnpm uninstall lodash --no-save\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.431Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":49}}165{"id":"doc-npm_sbom_npm_docs-02de03f2","source":"documentation","title":"npm-sbom | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-sbom","text":"Example:\n```bash\nnpm sbom\n```\n\nExample:\n```json\n{ \"$schema\": \"http://cyclonedx.org/schema/bom-1.5.schema.json\", \"bomFormat\": \"CycloneDX\", \"specVersion\": \"1.5\", \"serialNumber\": \"urn:uuid:09f55116-97e1-49cf-b3b8-44d0207e7730\", \"version\": 1, \"metadata\": { \"timestamp\": \"2023-09-01T00:00:00.001Z\", \"lifecycles\": [ { \"phase\": \"build\" } ], \"tools\": [ { \"vendor\": \"npm\", \"name\": \"cli\", \"version\": \"10.1.0\" } ], \"component\": { \"bom-ref\": \"simple@1.0.0\", \"type\": \"library\", \"name\": \"simple\", \"version\": \"1.0.0\", \"scope\": \"required\", \"author\": \"John Doe\", \"description\": \"simple react app\", \"purl\": \"pkg:npm/simple@1.0.0\", \"properties\": [ { \"name\": \"cdx:npm:package:path\", \"value\": \"\" } ], \"externalReferences\": [], \"licenses\": [ { \"license\": { \"id\": \"MIT\" } } ] } }, \"components\": [ { \"bom-ref\": \"lodash@4.17.21\", \"type\": \"library\", \"name\": \"lodash\", \"version\": \"4.17.21\", \"scope\": \"required\", \"author\": \"John-David Dalton\", \"description\": \"Lodash modular utilities.\", \"purl\": \"pkg:npm/lodash@4.17.21\", \"properties\": [ { \"name\": \"cdx:npm:package:path\", \"value\": \"node_modules/lodash\" } ], \"externalReferences\": [ { \"type\": \"distribution\", \"url\": \"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz\" }, { \"type\": \"vcs\", \"url\": \"git+https://github.com/lodash/lodash.git\" }, { \"type\": \"website\", \"url\": \"https://lodash.com/\" }, { \"type\": \"issue-tracker\", \"url\": \"https://github.com/lodash/lodash/issues\" } ], \"hashes\": [ { \"alg\": \"SHA-512\", \"content\": \"bf690311ee7b95e713ba568322e3533f2dd1cb880b189e99d4edef13592b81764daec43e2c54c61d5c558dc5cfb35ecb85b65519e74026ff17675b6f8f916f4a\" } ], \"licenses\": [ { \"license\": { \"id\": \"MIT\" } } ] } ], \"dependencies\": [ { \"ref\": \"simple@1.0.0\", \"dependsOn\": [\"lodash@4.17.21\"] }, { \"ref\": \"lodash@4.17.21\", \"dependsOn\": [] } ]}\n```\n\nExample:\n```json\n{ \"spdxVersion\": \"SPDX-2.3\", \"dataLicense\": \"CC0-1.0\", \"SPDXID\": \"SPDXRef-DOCUMENT\", \"name\": \"simple@1.0.0\", \"documentNamespace\": \"http://spdx.org/spdxdocs/simple-1.0.0-bf81090e-8bbc-459d-bec9-abeb794e096a\", \"creationInfo\": { \"created\": \"2023-09-01T00:00:00.001Z\", \"creators\": [\"Tool: npm/cli-10.1.0\"] }, \"documentDescribes\": [\"SPDXRef-Package-simple-1.0.0\"], \"packages\": [ { \"name\": \"simple\", \"SPDXID\": \"SPDXRef-Package-simple-1.0.0\", \"versionInfo\": \"1.0.0\", \"packageFileName\": \"\", \"description\": \"simple react app\", \"primaryPackagePurpose\": \"LIBRARY\", \"downloadLocation\": \"NOASSERTION\", \"filesAnalyzed\": false, \"homepage\": \"NOASSERTION\", \"licenseDeclared\": \"MIT\", \"externalRefs\": [ { \"referenceCategory\": \"PACKAGE-MANAGER\", \"referenceType\": \"purl\", \"referenceLocator\": \"pkg:npm/simple@1.0.0\" } ] }, { \"name\": \"lodash\", \"SPDXID\": \"SPDXRef-Package-lodash-4.17.21\", \"versionInfo\": \"4.17.21\", \"packageFileName\": \"node_modules/lodash\", \"description\": \"Lodash modular utilities.\", \"downloadLocation\": \"https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz\", \"filesAnalyzed\": false, \"homepage\": \"https://lodash.com/\", \"licenseDeclared\": \"MIT\", \"externalRefs\": [ { \"referenceCategory\": \"PACKAGE-MANAGER\", \"referenceType\": \"purl\", \"referenceLocator\": \"pkg:npm/lodash@4.17.21\" } ], \"checksums\": [ { \"algorithm\": \"SHA512\", \"checksumValue\": \"bf690311ee7b95e713ba568322e3533f2dd1cb880b189e99d4edef13592b81764daec43e2c54c61d5c558dc5cfb35ecb85b65519e74026ff17675b6f8f916f4a\" } ] } ], \"relationships\": [ { \"spdxElementId\": \"SPDXRef-DOCUMENT\", \"relatedSpdxElement\": \"SPDXRef-Package-simple-1.0.0\", \"relationshipType\": \"DESCRIBES\" }, { \"spdxElementId\": \"SPDXRef-Package-simple-1.0.0\", \"relatedSpdxElement\": \"SPDXRef-Package-lodash-4.17.21\", \"relationshipType\": \"DEPENDS_ON\" } ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.431Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":1112}}166{"id":"doc-npm_stars_npm_docs-274f5bb5","source":"documentation","title":"npm-stars | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-stars","text":"Example:\n```bash\nnpm stars [<user>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.431Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":14}}167{"id":"doc-npm_stop_npm_docs-2110099c","source":"documentation","title":"npm-stop | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-stop","text":"Example:\n```bash\nnpm stop [-- <args>]\n```\n\nExample:\n```json\n{ \"scripts\": { \"stop\": \"node bar.js\" }}\n```\n\nExample:\n```bash\nnpm stop\n> npm@x.x.x stop> node bar.js\n(bar.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.431Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":54}}168{"id":"doc-npm_start_npm_docs-5408b097","source":"documentation","title":"npm-start | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-start","text":"Example:\n```bash\nnpm start [-- <args>]\n```\n\nExample:\n```json\n{ \"scripts\": { \"start\": \"node foo.js\" }}\n```\n\nExample:\n```bash\nnpm start\n> npm@x.x.x start> node foo.js\n(foo.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.432Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":55}}169{"id":"doc-npm_test_npm_docs-6da3288a","source":"documentation","title":"npm-test | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-test","text":"Example:\n```bash\nnpm test [-- <args>]\naliases: tst, t\n```\n\nExample:\n```json\n{ \"scripts\": { \"test\": \"node test.js\" }}\n```\n\nExample:\n```bash\nnpm test> npm@x.x.x test> node test.js\n(test.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.432Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":58}}170{"id":"doc-npm_unstar_npm_docs-e371b6e3","source":"documentation","title":"npm-unstar | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-unstar","text":"Example:\n```bash\nnpm unstar [<package-spec>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.432Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}171{"id":"doc-npm_star_npm_docs-00611152","source":"documentation","title":"npm-star | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-star","text":"Example:\n```bash\nnpm star [<package-spec>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.433Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":16}}172{"id":"doc-npm_token_npm_docs-ce90fa6b","source":"documentation","title":"npm-token | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-token","text":"Example:\n```bash\nnpm token listnpm token revoke <id|token>npm token create\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.433Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":23}}173{"id":"doc-npm_version_npm_docs-3dc8f556","source":"documentation","title":"npm-version | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-version","text":"Example:\n```bash\nnpm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]\nalias: verison\n```\n\nExample:\n```bash\nnpm version patch -m \"Upgrade to %s for reasons\"\n```\n\nExample:\n```bash\n$ npm config set sign-git-tag true$ npm version patch\nYou need a passphrase to unlock the secret key for user: \"isaacs (http://blog.izs.me/) <i@izs.me>\"2048-bit RSA key, ID 6C481CF6, created 2010-08-31\nEnter passphrase:\n```\n\nExample:\n```json\n{ \"scripts\": { \"preversion\": \"npm test\", \"version\": \"npm run build && git add -A dist\", \"postversion\": \"git push && git push --tags && rm -rf build/temp\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.434Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":24,"estimatedTokens":165}}174{"id":"doc-npm_undeprecate_npm_docs-af9cb409","source":"documentation","title":"npm-undeprecate | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-undeprecate","text":"Example:\n```bash\nnpm undeprecate <package-spec>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.434Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}175{"id":"doc-npm_team_npm_docs-5326555b","source":"documentation","title":"npm-team | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-team","text":"Example:\n```bash\nnpm team create <scope:team> [--otp <otpcode>]npm team destroy <scope:team> [--otp <otpcode>]npm team add <scope:team> <user> [--otp <otpcode>]npm team rm <scope:team> <user> [--otp <otpcode>]npm team ls <scope>|<scope:team>\n```\n\nExample:\n```bash\nnpm team create @org:newteam\n```\n\nExample:\n```bash\nnpm team add @org:newteam username\n```\n\nExample:\n```bash\nnpm team rm @org:newteam username\n```\n\nExample:\n```bash\nnpm team ls @org\n```\n\nExample:\n```bash\nnpm team ls @org:newteam\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.434Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":128}}176{"id":"doc-npm_trust_npm_docs-6faac433","source":"documentation","title":"npm-trust | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-trust","text":"Example:\n```bash\nnpm trust github [package] --file [--repo|--repository] [--env|--environment] [--allow-publish] [--allow-stage-publish] [-y|--yes]\n```\n\nExample:\n```bash\nnpm trust gitlab [package] --file [--project|--repo|--repository] [--env|--environment] [--allow-publish] [--allow-stage-publish] [-y|--yes]\n```\n\nExample:\n```bash\nnpm trust circleci [package] --org-id <uuid> --project-id <uuid> --pipeline-definition-id <uuid> --vcs-origin <origin> [--context-id <uuid>...] [--allow-publish] [--allow-stage-publish] [-y|--yes]\n```\n\nExample:\n```bash\nnpm trust list [package]\n```\n\nExample:\n```bash\nnpm trust revoke [package] --id=<trust-id>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.434Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":165}}177{"id":"doc-npm_whoami_npm_docs-9427d5ec","source":"documentation","title":"npm-whoami | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-whoami","text":"Example:\n```bash\nnpm whoami\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.435Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}178{"id":"doc-npm_stage_npm_docs-18bb10ec","source":"documentation","title":"npm-stage | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-stage","text":"Example:\n```bash\nnpm stage\n```\n\nExample:\n```bash\nnpm stage publish <package-spec>\n```\n\nExample:\n```bash\nnpm stage list [<package-spec>]\n```\n\nExample:\n```bash\nnpm stage view <stage-id>\n```\n\nExample:\n```bash\nnpm stage approve <stage-id>\n```\n\nExample:\n```bash\nnpm stage reject <stage-id>\n```\n\nExample:\n```bash\nnpm stage download <stage-id>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.435Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":36,"estimatedTokens":89}}179{"id":"doc-npm_update_npm_docs-8a19be0a","source":"documentation","title":"npm-update | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-update","text":"Example:\n```bash\nnpm update [<pkg>...]\naliases: u, up, upgrade, udpate\n```\n\nExample:\n```json\n{ \"dist-tags\": { \"latest\": \"1.2.2\" }, \"versions\": [ \"1.2.2\", \"1.2.1\", \"1.2.0\", \"1.1.2\", \"1.1.1\", \"1.0.0\", \"0.4.1\", \"0.4.0\", \"0.2.0\" ]}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^1.1.1\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"~1.1.1\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^0.2.0\"}\n```\n\nExample:\n```json\n\"dependencies\": { \"dep1\": \"^0.4.0\"}\n```\n\nExample:\n```json\n{ \"name\": \"my-app\", \"dependencies\": { \"dep1\": \"^1.0.0\", \"dep2\": \"1.0.0\" }}\n```\n\nExample:\n```json\n{ \"name\": \"dep2\", \"dependencies\": { \"dep1\": \"~1.1.1\" }}\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.436Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":47,"estimatedTokens":204}}180{"id":"doc-npm_org_npm_docs-abf99c51","source":"documentation","title":"npm-org | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-org","text":"Example:\n```bash\nnpm org set orgname username [developer | admin | owner]npm org rm orgname usernamenpm org ls orgname [<username>]\nalias: ogr\n```\n\nExample:\n```bash\n$ npm org set my-org @mx-smith\n```\n\nExample:\n```bash\n$ npm org set my-org @mx-santos admin\n```\n\nExample:\n```bash\n$ npm org rm my-org mx-santos\n```\n\nExample:\n```bash\n$ npm org ls my-org\n```\n\nExample:\n```bash\n$ npm org ls my-org --json\n```\n\nExample:\n```bash\n$ npm org ls my-org @mx-santos\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.437Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":118}}181{"id":"doc-npm_view_npm_docs-d669e095","source":"documentation","title":"npm-view | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-view","text":"Example:\n```bash\nnpm view [<package-spec>] [<field>[.subfield]...]\naliases: info, show, v\n```\n\nExample:\n```bash\nnpm view connect\n```\n\nExample:\n```bash\nnpm view ronn@0.3.5 dependencies\n```\n\nExample:\n```bash\nnpm view . dependencies\n```\n\nExample:\n```bash\nnpm view npm repository.url\n```\n\nExample:\n```bash\nnpm view opts@$(npm view ronn dependencies.opts)\n```\n\nExample:\n```bash\nnpm view express contributors.email\n```\n\nExample:\n```bash\nnpm view express contributors[0].email\n```\n\nExample:\n```bash\nnpm view express time'[4.8.0]'\n```\n\nExample:\n```bash\nnpm view express \"time[4.17.1]\"\n```\n\nExample:\n```bash\nnpm view express@4.17.1 time\n```\n\nExample:\n```bash\nnpm view express contributors.name contributors.email\n```\n\nExample:\n```bash\nnpm view npm contributors\n```\n\nExample:\n```bash\nnpm view yui3@'>0.5.4' dependencies.jsdom\n```\n\nExample:\n```bash\nnpm view connect versions\n```\n\nExample:\n```bash\n# Access nested propertiesnpm view npm repository.urlnpm view express bugs.url\n```\n\nExample:\n```bash\n# Get the first contributor's emailnpm view express contributors[0].email\n# Get the second maintainer's namenpm view express maintainers[1].name\n```\n\nExample:\n```bash\n# Get publish time for a specific versionnpm view express \"time[4.17.1]\"\n# Get dist-tagsnpm view express \"dist-tags.latest\"\n```\n\nExample:\n```bash\n# Get all contributor emailsnpm view express contributors.email\n# Get all contributor namesnpm view express contributors.name\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.437Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":19,"totalLines":100,"estimatedTokens":361}}182{"id":"doc-npm_owner_npm_docs-6b506efc","source":"documentation","title":"npm-owner | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-owner","text":"Example:\n```bash\nnpm owner add <user> <package-spec>npm owner rm <user> <package-spec>npm owner ls <package-spec>\nalias: author\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.438Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":37}}183{"id":"doc-npm_logout_npm_docs-7998dbf0","source":"documentation","title":"npm-logout | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-logout","text":"Example:\n```bash\nnpm logout\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.438Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":102}}184{"id":"doc-organizations_npm_docs-0d174d2c","source":"documentation","title":"Organizations | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/orgs","text":"Example:\n```bash\nnpm team ls <org>:developers\n```\n\nExample:\n```bash\nnpm team create <org:team>\n```\n\nExample:\n```bash\nnpm team add <org:team> <user>\n```\n\nExample:\n```bash\nnpm init --scope=<org>\n```\n\nExample:\n```bash\nnpm access grant <read-only|read-write> <org:team> [<package>]\n```\n\nExample:\n```bash\nnpm access revoke <org:team> [<package>]\n```\n\nExample:\n```bash\nnpm access list packages <org> <user>\n```\n\nExample:\n```bash\nnpm access list packages <org:team>\n```\n\nExample:\n```bash\nnpm access list collaborators <pkg>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.438Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":46,"estimatedTokens":134}}185{"id":"doc-package_json_npm_docs-77137ef2","source":"documentation","title":"package.json | npm Docs","url":"https://docs.npmjs.com/cli/v11/configuring-npm/package-json","text":"Example:\n```json\n\"keywords\": [ \"node\", \"javascript\", \"npm\"]\n```\n\nExample:\n```json\n\"homepage\": \"https://github.com/npm/example#readme\"\n```\n\nExample:\n```json\n{ \"bugs\": { \"url\": \"https://github.com/npm/example/issues\", \"email\": \"example@npmjs.com\" }}\n```\n\nExample:\n```json\n{ \"license\": \"BSD-3-Clause\"}\n```\n\nExample:\n```json\n{ \"license\": \"(ISC OR GPL-3.0)\"}\n```\n\nExample:\n```json\n{ \"license\": \"SEE LICENSE IN <filename>\"}\n```\n\nExample:\n```json\n// Not valid metadata{ \"license\" : { \"type\" : \"ISC\", \"url\" : \"https://opensource.org/licenses/ISC\" }}\n// Not valid metadata{ \"licenses\" : [ { \"type\": \"MIT\", \"url\": \"https://www.opensource.org/licenses/mit-license.php\" }, { \"type\": \"Apache-2.0\", \"url\": \"https://opensource.org/licenses/apache2.0.php\" } ]}\n```\n\nExample:\n```json\n{ \"license\": \"ISC\"}\n```\n\nExample:\n```json\n{ \"license\": \"(MIT OR Apache-2.0)\"}\n```\n\nExample:\n```json\n{ \"license\": \"UNLICENSED\"}\n```\n\nExample:\n```json\n{ \"name\": \"Barney Rubble\", \"email\": \"barney@npmjs.com\", \"url\": \"http://barnyrubble.npmjs.com/\"}\n```\n\nExample:\n```json\n{ \"author\": \"Barney Rubble <barney@npmjs.com> (http://barnyrubble.npmjs.com/)\"}\n```\n\nExample:\n```json\n{ \"funding\": { \"type\": \"individual\", \"url\": \"http://npmjs.com/donate\" }}\n```\n\nExample:\n```json\n{ \"funding\": { \"type\": \"patreon\", \"url\": \"https://www.patreon.com/user\" }}\n```\n\nExample:\n```json\n{ \"funding\": \"http://npmjs.com/donate\"}\n```\n\nExample:\n```json\n{ \"funding\": [ { \"type\": \"individual\", \"url\": \"http://npmjs.com/donate\" }, \"http://npmjs.com/donate-also\", { \"type\": \"patreon\", \"url\": \"https://www.patreon.com/user\" } ]}\n```\n\nExample:\n```json\n{ \"bin\": { \"myapp\": \"bin/cli.js\" }}\n```\n\nExample:\n```json\n{ \"name\": \"my-program\", \"version\": \"1.2.5\", \"bin\": \"path/to/program\"}\n```\n\nExample:\n```json\n{ \"name\": \"my-program\", \"version\": \"1.2.5\", \"bin\": { \"my-program\": \"path/to/program\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": \"./man/doc.1\"}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": [\"./man/foo.1\", \"./man/bar.1\"]}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": [\"./man/foo.1\", \"./man/foo.2\"]}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"git+https://github.com/npm/cli.git\" }}\n```\n\nExample:\n```json\n{ \"repository\": \"npm/example\",\n \"repository\": \"github:npm/example\",\n \"repository\": \"gist:11081aaa281\",\n \"repository\": \"bitbucket:user/repo\",\n \"repository\": \"gitlab:user/repo\"}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"git+https://github.com/npm/example.git\" }}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"git+https://github.com/npm/cli.git\", \"directory\": \"workspaces/libnpmpublish\" }}\n```\n\nExample:\n```json\n{ \"gypfile\": false}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"config\": { \"port\": \"8080\" }}\n```\n\nExample:\n```json\n{ \"dependencies\": { \"foo\": \"1.0.0 - 2.9999.9999\", \"bar\": \">=1.0.2 <2.1.2\", \"baz\": \">1.0.2 <=2.3.4\", \"boo\": \"2.0.1\", \"qux\": \"<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0\", \"asd\": \"http://npmjs.com/example.tar.gz\", \"til\": \"~1.2\", \"elf\": \"~1.2.3\", \"two\": \"2.x\", \"thr\": \"3.3.x\", \"lat\": \"latest\", \"dyl\": \"file:../dyl\", \"kpg\": \"npm:pkg@1.0.0\" }}\n```\n\nExample:\n```bash\n<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]\n```\n\nExample:\n```bash\ngit+ssh://git@github.com:npm/cli.git#v1.0.27git+ssh://git@github.com:npm/cli#semver:^5.0git+https://isaacs@github.com/npm/cli.gitgit://github.com/npm/cli.git#v1.0.27\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"0.0.0\", \"dependencies\": { \"express\": \"expressjs/express\", \"mocha\": \"mochajs/mocha#4727d357ea\", \"module\": \"npm/example-github-repo#feature\\/branch\" }}\n```\n\nExample:\n```bash\n../foo/bar~/foo/bar./foo/bar/foo/bar\n```\n\nExample:\n```json\n{ \"name\": \"baz\", \"dependencies\": { \"bar\": \"file:../foo/bar\" }}\n```\n\nExample:\n```json\n{ \"name\": \"@npm/ethopia-waza\", \"description\": \"a delightfully fruity coffee varietal\", \"version\": \"1.2.3\", \"devDependencies\": { \"coffee-script\": \"~1.6.3\" }, \"scripts\": { \"prepare\": \"coffee -o lib/ -c src/waza.coffee\" }, \"main\": \"lib/waza.js\"}\n```\n\nExample:\n```json\n{ \"name\": \"@npm/tea-latte\", \"version\": \"1.3.5\", \"peerDependencies\": { \"@npm/tea\": \"2.x\" }}\n```\n\nExample:\n```bash\n├── @npm/tea-latte@1.3.5└── @npm/tea@2.2.0\n```\n\nExample:\n```json\n{ \"name\": \"@npm/tea-latte\", \"version\": \"1.3.5\", \"peerDependencies\": { \"@npm/tea\": \"2.x\", \"@npm/soy-milk\": \"1.2\" }, \"peerDependenciesMeta\": { \"@npm/soy-milk\": { \"optional\": true } }}\n```\n\nExample:\n```json\n{ \"name\": \"@npm/awesome-web-framework\", \"version\": \"1.0.0\", \"bundleDependencies\": [\"@npm/renderized\", \"@npm/super-streams\"]}\n```\n\nExample:\n```js\ntry { var foo = require(\"@npm/foo\"); var fooVersion = require(\"@npm/foo/package.json\").version;} catch (er) { foo = null;}if (notGoodFooVersion(fooVersion)) { foo = null;}\n// .. then later in your program ..\nif (foo) { foo.doFooThings();}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/foo\": \"1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/foo\": \"^1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/foo\": { \".\": \"1.0.0\", \"@npm/bar\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/bar\": { \"@npm/foo\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/baz\": { \"@npm/bar\": { \"@npm/foo\": \"1.0.0\" } } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"@npm/bar@2.0.0\": { \"@npm/foo\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"dependencies\": { \"@npm/foo\": \"^1.0.0\" }, \"overrides\": { // BAD, will throw an EOVERRIDE error // \"foo\": \"^2.0.0\" // GOOD, specs match so override is allowed // \"foo\": \"^1.0.0\" // BEST, the override is defined as a reference to the dependency \"@npm/foo\": \"$foo\", // the referenced package does not need to match the overridden one \"@npm/bar\": \"$foo\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"package-name\": \"npm:@scope/forked-package@1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"package-name\": \"github:username/repo#branch-name\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"package-name\": \"file:../local-fork\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"parent-package\": { \"vulnerable-dep\": \"github:username/patched-fork#v2.0.1\" } }}\n```\n\nExample:\n```json\n{ \"engines\": { \"node\": \">=0.10.3 <15\" }}\n```\n\nExample:\n```json\n{ \"engines\": { \"npm\": \"~1.0.20\" }}\n```\n\nExample:\n```json\n{ \"os\": [\"darwin\", \"linux\"]}\n```\n\nExample:\n```json\n{ \"os\": [\"!win32\"]}\n```\n\nExample:\n```json\n{ \"cpu\": [\"x64\", \"ia32\"]}\n```\n\nExample:\n```json\n{ \"cpu\": [\"!arm\", \"!mips\"]}\n```\n\nExample:\n```json\n{ \"os\": \"linux\", \"libc\": \"glibc\"}\n```\n\nExample:\n```json\n{ \"devEngines\": { \"runtime\": { \"name\": \"node\", \"onFail\": \"error\" }, \"packageManager\": { \"name\": \"npm\", \"onFail\": \"error\" } }}\n```\n\nExample:\n```json\n{ \"name\": \"workspace-example\", \"workspaces\": [\"./packages/*\"]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.440Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":60,"totalLines":308,"estimatedTokens":1847}}186{"id":"doc-npm_pack_npm_docs-70a9b233","source":"documentation","title":"npm-pack | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-pack","text":"Example:\n```bash\nnpm pack <package-spec>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.440Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}187{"id":"doc-npm_ls_npm_docs-4a449838","source":"documentation","title":"npm-ls | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-ls","text":"Example:\n```bash\nnpm ls <package-spec>\nalias: list\n```\n\nExample:\n```bash\nnpm@11.19.0 /path/to/npm└─┬ init-package-json@0.0.4 └── promzard@0.1.5\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.440Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":41}}188{"id":"doc-npm_install_scripts_npm_docs-377cd9a9","source":"documentation","title":"npm-install-scripts | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-install-scripts","text":"Example:\n```bash\nnpm install-scripts approve <pkg> [<pkg> ...]npm install-scripts approve --allnpm install-scripts deny <pkg> [<pkg> ...]npm install-scripts deny --allnpm install-scripts lsnpm install-scripts prune\n```\n\nExample:\n```bash\n# Approve all currently-installed install scripts after reviewing themnpm install-scripts approve --all\n# Approve specific packages, pinned to their installed versionnpm install-scripts approve canvas sharp\n# Deny a package so it stays blockednpm install-scripts deny telemetry-pkg\n# Preview which packages still need reviewnpm install-scripts ls\n# Preview stale allowScripts entries, then remove themnpm install-scripts prune --dry-runnpm install-scripts prune\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.441Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":15,"estimatedTokens":179}}189{"id":"doc-npm_install_ci_test_npm_docs-2a5caf8d","source":"documentation","title":"npm-install-ci-test | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-install-ci-test","text":"Example:\n```bash\nnpm install-ci-test\naliases: cit, clean-install-test, sit\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.441Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":23}}190{"id":"doc-npm_init_npm_docs-9f4a9258","source":"documentation","title":"npm-init | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-init","text":"Example:\n```bash\nnpm init <package-spec> (same as `npx create-<package-spec>`)npm init <@scope> (same as `npx <@scope>/create`)\naliases: create, innit\n```\n\nExample:\n```bash\n$ npm init react-app ./my-react-app\n```\n\nExample:\n```bash\n$ mkdir my-esm-lib && cd my-esm-lib$ npm init esm --yes\n```\n\nExample:\n```bash\n$ mkdir my-npm-pkg && cd my-npm-pkg$ git init$ npm init\n```\n\nExample:\n```bash\n$ npm init -y\n```\n\nExample:\n```bash\n$ npm init --init-private -y\n```\n\nExample:\n```bash\n.+-- package.json\n```\n\nExample:\n```bash\n$ npm init -w packages/a\n```\n\nExample:\n```bash\n.+-- package.json`-- packages `-- a `-- package.json\n```\n\nExample:\n```bash\nnpm init -w packages/my-react-app react-app .\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json `-- my-react-app +-- README +-- package.json `-- ...\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.442Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":13,"totalLines":68,"estimatedTokens":306}}191{"id":"doc-npm_ll_npm_docs-943990e7","source":"documentation","title":"npm-ll | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-ll","text":"Example:\n```bash\nnpm ll [[<@scope>/]<pkg> ...]\nalias: la\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.442Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":19}}192{"id":"doc-npm_outdated_npm_docs-ea9ef668","source":"documentation","title":"npm-outdated | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-outdated","text":"Example:\n```bash\nnpm outdated [<package-spec> ...]\n```\n\nExample:\n```bash\n$ npm outdatedPackage Current Wanted Latest Location Depended byglob 5.0.15 5.0.15 6.0.1 node_modules/glob dependent-package-namenothingness 0.0.3 git git node_modules/nothingness dependent-package-namenpm 3.5.1 3.5.2 3.5.1 node_modules/npm dependent-package-namelocal-dev 0.0.3 linked linked local-dev dependent-package-nameonce 1.3.2 1.3.3 1.3.3 node_modules/once dependent-package-name\n```\n\nExample:\n```json\n{ \"glob\": \"^5.0.15\", \"nothingness\": \"github:othiym23/nothingness#master\", \"npm\": \"^3.5.1\", \"once\": \"^1.3.1\"}\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.442Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":218}}193{"id":"doc-npm_restart_npm_docs-eed4571e","source":"documentation","title":"npm-restart | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-restart","text":"Example:\n```bash\nnpm restart [-- <args>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.443Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}194{"id":"doc-npm_prefix_npm_docs-f3c61cbb","source":"documentation","title":"npm-prefix | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-prefix","text":"Example:\n```bash\nnpm prefix\n```\n\nExample:\n```bash\nnpm prefix/usr/local/projects/foo\n```\n\nExample:\n```bash\nnpm prefix -g/usr/local\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.443Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":37}}195{"id":"doc-npm_root_npm_docs-46465f8a","source":"documentation","title":"npm-root | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-root","text":"Example:\n```bash\nnpm root\n```\n\nExample:\n```bash\n#!/bin/bashglobal_node_modules=\"$(npm root --global)\"echo \"Global packages installed in: ${global_node_modules}\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.443Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":45}}196{"id":"doc-npm_set_npm_docs-009c96d9","source":"documentation","title":"npm-set | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-set","text":"Example:\n```bash\nnpm set <key>=<value> [<key>=<value> ...] (See `npm config`)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.443Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":24}}197{"id":"doc-npm_install_test_npm_docs-80e151dc","source":"documentation","title":"npm-install-test | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-install-test","text":"Example:\n```bash\nnpm install-test [<package-spec> ...]\nalias: it\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.444Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":50}}198{"id":"doc-npm_link_npm_docs-999d390e","source":"documentation","title":"npm-link | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-link","text":"Example:\n```bash\nnpm link [<package-spec>]\nalias: ln\n```\n\nExample:\n```bash\ncd ~/projects/node-redis # go into the package directorynpm link # creates global linkcd ~/projects/node-bloggy # go into some other package directory.npm link redis # link-install the package\n```\n\nExample:\n```bash\ncd ~/projects/node-bloggy # go into the dir of your main projectnpm link ../node-redis # link the dir of your dependency\n```\n\nExample:\n```bash\n(cd ../node-redis; npm link)npm link redis\n```\n\nExample:\n```bash\nnpm link @myorg/privatepackage\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.445Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":27,"estimatedTokens":147}}199{"id":"doc-npm_search_npm_docs-c1a764b0","source":"documentation","title":"npm-search | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-search","text":"Example:\n```bash\nnpm search <search term> [<search term> ...]\naliases: find, s, se\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.445Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":25}}200{"id":"doc-npm_prune_npm_docs-d8b845aa","source":"documentation","title":"npm-prune | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-prune","text":"Example:\n```bash\nnpm prune [[<@scope>/]<pkg>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.445Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}201{"id":"doc-npm_rebuild_npm_docs-d600b171","source":"documentation","title":"npm-rebuild | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-rebuild","text":"Example:\n```bash\nnpm rebuild [<package-spec>] ...]\nalias: rb\n```\n\nExample:\n```bash\n\"scripts\": { \"install\": \"node-gyp rebuild\"}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.446Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":12,"estimatedTokens":37}}202{"id":"doc-npm_login_npm_docs-4a3e939f","source":"documentation","title":"npm-login | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-login","text":"Example:\n```bash\nnpm login\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.446Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":102}}203{"id":"doc-npx_npm_docs-d99fea37","source":"documentation","title":"npx | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npx","text":"Example:\n```bash\nnpx -- <pkg>[@<version>] [args...]npx --package=<pkg>[@<version>] -- <cmd> [args...]npx -c '<cmd> [args...]'npx --package=foo -c '<cmd> [args...]'\n```\n\nExample:\n```bash\n$ npm exec -- tap --bail test/foo.js$ npx tap --bail test/foo.js\n```\n\nExample:\n```bash\n$ npm exec --package=foo -- bar --bar-argument# ~ or ~$ npx --package=foo bar --bar-argument\n```\n\nExample:\n```bash\n$ npm x -c 'eslint && say \"hooray, lint passed\"'$ npx -c 'eslint && say \"hooray, lint passed\"'\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.447Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":125}}204{"id":"doc-npm_publish_npm_docs-449b9c10","source":"documentation","title":"npm-publish | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-publish","text":"Example:\n```bash\nnpm publish <package-spec>\n```\n\nExample:\n```bash\nnpm publish\n```\n\nExample:\n```bash\nnpm publish --workspace=<workspace-name>\n```\n\nExample:\n```bash\nnpm publish --workspace=workspace-a --workspace=workspace-b\n```\n\nExample:\n```bash\nnpm publish --workspaces\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.447Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":72}}205{"id":"doc-npm_run_npm_docs-2e02de1f","source":"documentation","title":"npm-run | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-run","text":"Example:\n```bash\nnpm run <command> [-- <args>]\naliases: run-script, rum, urn\n```\n\nExample:\n```bash\nnpm run test -- --grep=\"pattern\"\n```\n\nExample:\n```bash\n\"scripts\": {\"test\": \"tap test/*.js\"}\n```\n\nExample:\n```bash\n\"scripts\": {\"test\": \"node_modules/.bin/tap test/*.js\"}\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json +-- b | `-- package.json `-- c `-- package.json\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"./packages/*\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.447Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":32,"estimatedTokens":123}}206{"id":"doc-install_npm_docs-6a01e66c","source":"documentation","title":"Install | npm Docs","url":"https://docs.npmjs.com/cli/v11/configuring-npm/install","text":"Example:\n```bash\nnode -vnpm -v\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.448Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}207{"id":"doc-scope_npm_docs-6e365358","source":"documentation","title":"Scope | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/scope","text":"Example:\n```bash\n@somescope/somepackagename\n```\n\nExample:\n```bash\nnpm install @myorg/mypackage\n```\n\nExample:\n```json\n\"dependencies\": { \"@myorg/mypackage\": \"^1.3.0\"}\n```\n\nExample:\n```javascript\nrequire(\"@myorg/mypackage\");\n```\n\nExample:\n```bash\nnpm login --registry=http://reg.example.com --scope=@myco\n```\n\nExample:\n```bash\nnpm config set @myco:registry=http://reg.example.com\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.448Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":99}}208{"id":"doc-workspaces_npm_docs-4bcf8885","source":"documentation","title":"Workspaces | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/workspaces","text":"Example:\n```json\n{ \"name\": \"my-workspaces-powered-project\", \"workspaces\": [\"packages/a\"]}\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json\n```\n\nExample:\n```bash\n.+-- node_modules| `-- a -> ../packages/a+-- package-lock.json+-- package.json`-- packages +-- a | `-- package.json\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json `-- b `-- package.json\n```\n\nExample:\n```json\n{ \"dependencies\": { \"b\": \"^1.0.0\" }}\n```\n\nExample:\n```bash\n// ./packages/a/index.jsmodule.exports = 'a'\n// ./lib/index.jsconst moduleA = require('a')console.log(moduleA) // -> a\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"packages/a\", \"packages/b\" ]}\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"packages/b\", \"packages/a\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.448Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":42,"estimatedTokens":200}}209{"id":"doc-npmrc_npm_docs-8f8a96c8","source":"documentation","title":".npmrc | npm Docs","url":"https://docs.npmjs.com/cli/v11/configuring-npm/npmrc","text":"Example:\n```bash\ncache = ${HOME}/.npm-packagesnode-options = \"${NODE_OPTIONS?} --use-system-ca\"\n```\n\nExample:\n```bash\nkey[] = \"first value\"key[] = \"second value\"\n```\n\nExample:\n```bash\n# last modified: 01 Jan 2016; Set a new registry for a scoped package@myscope:registry=https://mycustomregistry.example.org\n```\n\nExample:\n```json\n{ \"name\": \"my-package\", \"config\": { \"mirror\": \"https://example.com/\" }}\n```\n\nExample:\n```bash\n; bad config_authToken=MYTOKEN\n; good config@myorg:registry=https://somewhere-else.com/myorg@another:registry=https://somewhere-else.com/another//registry.npmjs.org/:_authToken=MYTOKEN\n; would apply to both @myorg and @another//somewhere-else.com/:_authToken=MYTOKEN\n; would apply only to @myorg//somewhere-else.com/myorg/:_authToken=MYTOKEN1\n; would apply only to @another//somewhere-else.com/another/:_authToken=MYTOKEN2\n```\n\nExample:\n```bash\nwarn Unknown user config \"electron_mirror\".This will stop working in the next major version of npm.\n```\n\nExample:\n```bash\nexport ELECTRON_MIRROR=\"https://mirrorexample.npmjs.org/mirrors/electron/\"export ELECTRON_CUSTOM_DIR=\"{{ version }}\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.449Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":40,"estimatedTokens":283}}210{"id":"doc-folders_npm_docs-dbc62baf","source":"documentation","title":"Folders | npm Docs","url":"https://docs.npmjs.com/cli/v11/configuring-npm/folders","text":"Example:\n```bash\nfoo+-- blerg@1.2.5+-- bar@1.2.3| +-- blerg@1.x (latest=1.3.7)| +-- baz@2.x| | `-- quux@3.x| | `-- bar@1.2.3 (cycle)| `-- asdf@*`-- baz@1.2.3 `-- quux@3.x `-- bar\n```\n\nExample:\n```bash\nfoo+-- node_modules +-- blerg (1.2.5) <---[A] +-- bar (1.2.3) <---[B] | +-- node_modules | +-- baz (2.0.2) <---[C] +-- asdf (2.3.4) +-- baz (1.2.3) <---[D] +-- quux (3.2.0) <---[E]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.450Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":114}}211{"id":"doc-scripts_npm_docs-d7ddeb58","source":"documentation","title":"Scripts | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/scripts","text":"Example:\n```json\n{ \"scripts\": { \"precompress\": \"{{ executes BEFORE the `compress` script }}\", \"compress\": \"{{ run command to compress files }}\", \"postcompress\": \"{{ executes AFTER `compress` script }}\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"dependencies\": { \"bar\": \"0.1.x\" }, \"scripts\": { \"start\": \"bar ./test\" }}\n```\n\nExample:\n```bash\nprocess.env.npm_package_scripts_install === \"foo.js\"\n```\n\nExample:\n```json\n{ \"scripts\": { \"prepare\": \"scripts/build.js\", \"test\": \"scripts/test.js\" }}\n```\n\nExample:\n```json\n{ \"scripts\": { \"prepare\": \"npm run build\", \"build\": \"tsc\", \"test\": \"jest\" }}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.451Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":26,"estimatedTokens":162}}212{"id":"doc-removal_npm_docs-3a15c574","source":"documentation","title":"Removal | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/removal","text":"Example:\n```bash\nsudo npm uninstall npm -g\n```\n\nExample:\n```bash\nrm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*\n```\n\nExample:\n```bash\nls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm\n```\n\nExample:\n```bash\nfind /usr/local/{lib/node,bin} -exec grep -l npm \\{\\} \\; ;\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.451Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":21,"estimatedTokens":79}}213{"id":"doc-config_npm_docs-64e8affe","source":"documentation","title":"Config | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/config","text":"Example:\n```bash\nnpm ls --par# same as:npm ls --parseable\n```\n\nExample:\n```bash\nnpm ls -gpld# same as:npm ls --global --parseable --long --loglevel info\n```\n\nExample:\n```ini\nca=\"-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----\"\n```\n\nExample:\n```ini\nca[]=\"...\"ca[]=\"...\"\n```\n\nExample:\n```bash\nnpm exec --package yo --package generator-node --call \"yo node\"\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\nExample:\n```ini\ncert=\"-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----\"\n```\n\nExample:\n```ini\nkey=\"-----BEGIN PRIVATE KEY-----\\nXXXX\\nXXXX\\n-----END PRIVATE KEY-----\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.454Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":10,"totalLines":52,"estimatedTokens":264}}214{"id":"doc-npm_query_npm_docs-5392c1ca","source":"documentation","title":"npm-query | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-query","text":"Example:\n```bash\nnpm query <selector>\n```\n\nExample:\n```bash\n# find all dependencies with postinstall scripts & uninstall themnpm query \":attr(scripts, [postinstall])\" | jq 'map(.name)|join(\"\\n\")' -r | xargs -I {} npm uninstall {}\n# find all git dependencies & explain who requires themnpm query \":type(git)\" | jq 'map(.name)' | xargs -I {} npm why {}\n```\n\nExample:\n```stylus\n// all deps*\n// all direct deps:root > *\n// direct production deps:root > .prod\n// direct development deps:root > .dev\n// any peer dep of a direct deps:root > * > .peer\n// any workspace dep.workspace\n// all workspaces that depend on another workspace.workspace > .workspace\n// all workspaces that have peer deps.workspace:has(.peer)\n// any dep named \"lodash\"// equivalent to [name=\"lodash\"]#lodash\n// any deps named \"lodash\" & within semver range ^\"1.2.3\"#lodash@^1.2.3// equivalent to...[name=\"lodash\"]:semver(^1.2.3)\n// get the hoisted node for a given semver range#lodash@^1.2.3:not(:deduped)\n// querying deps with a specific version#lodash@2.1.5// equivalent to...[name=\"lodash\"][version=\"2.1.5\"]\n// has any deps:has(*)\n// deps with no other deps (ie. \"leaf\" nodes):empty\n// manually querying git dependencies[repository^=github:],[repository^=git:],[repository^=https://github.com],[repository^=http://github.com],[repository^=https://github.com],[repository^=+git:...]\n// querying for all git dependencies:type(git)\n// get production dependencies that aren't also dev deps.prod:not(.dev)\n// get dependencies with specific licenses[license=MIT], [license=ISC]\n// find all packages that have @ruyadorno as a contributor:attr(contributors, [email=ruyadorno@github.com])\n```\n\nExample:\n```json\n[ { \"name\": \"\", \"version\": \"\", \"description\": \"\", \"homepage\": \"\", \"bugs\": {}, \"author\": {}, \"license\": {}, \"funding\": {}, \"files\": [], \"main\": \"\", \"browser\": \"\", \"bin\": {}, \"man\": [], \"directories\": {}, \"repository\": {}, \"scripts\": {}, \"config\": {}, \"dependencies\": {}, \"devDependencies\": {}, \"optionalDependencies\": {}, \"bundledDependencies\": {}, \"peerDependencies\": {}, \"peerDependenciesMeta\": {}, \"engines\": {}, \"os\": [], \"cpu\": [], \"workspaces\": {}, \"keywords\": [], ... }, ...\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.454Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":40,"estimatedTokens":565}}215{"id":"doc-package_json_npm_docs-0fadecbe","source":"documentation","title":"package.json | npm Docs","url":"https://docs.npmjs.com/cli/v8/configuring-npm/package-json","text":"Example:\n```json\n\"homepage\": \"https://github.com/owner/project#readme\"\n```\n\nExample:\n```json\n{ \"url\": \"https://github.com/owner/project/issues\", \"email\": \"project@hostname.com\"}\n```\n\nExample:\n```json\n{ \"license\": \"BSD-3-Clause\"}\n```\n\nExample:\n```json\n{ \"license\": \"(ISC OR GPL-3.0)\"}\n```\n\nExample:\n```json\n{ \"license\": \"SEE LICENSE IN <filename>\"}\n```\n\nExample:\n```json\n// Not valid metadata{ \"license\" : { \"type\" : \"ISC\", \"url\" : \"https://opensource.org/licenses/ISC\" }}\n// Not valid metadata{ \"licenses\" : [ { \"type\": \"MIT\", \"url\": \"https://www.opensource.org/licenses/mit-license.php\" }, { \"type\": \"Apache-2.0\", \"url\": \"https://opensource.org/licenses/apache2.0.php\" } ]}\n```\n\nExample:\n```json\n{ \"license\": \"ISC\"}\n```\n\nExample:\n```json\n{ \"license\": \"(MIT OR Apache-2.0)\"}\n```\n\nExample:\n```json\n{ \"license\": \"UNLICENSED\"}\n```\n\nExample:\n```json\n{ \"name\": \"Barney Rubble\", \"email\": \"b@rubble.com\", \"url\": \"http://barnyrubble.tumblr.com/\"}\n```\n\nExample:\n```json\n{ \"author\": \"Barney Rubble <b@rubble.com> (http://barnyrubble.tumblr.com/)\"}\n```\n\nExample:\n```json\n{ \"funding\": { \"type\": \"individual\", \"url\": \"http://example.com/donate\" },\n \"funding\": { \"type\": \"patreon\", \"url\": \"https://www.patreon.com/my-account\" },\n \"funding\": \"http://example.com/donate\",\n \"funding\": [ { \"type\": \"individual\", \"url\": \"http://example.com/donate\" }, \"http://example.com/donateAlso\", { \"type\": \"patreon\", \"url\": \"https://www.patreon.com/my-account\" } ]}\n```\n\nExample:\n```json\n{ \"bin\": { \"myapp\": \"./cli.js\" }}\n```\n\nExample:\n```json\n{ \"name\": \"my-program\", \"version\": \"1.2.5\", \"bin\": \"./path/to/program\"}\n```\n\nExample:\n```json\n{ \"name\": \"my-program\", \"version\": \"1.2.5\", \"bin\": { \"my-program\": \"./path/to/program\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": \"./man/doc.1\"}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": [\"./man/foo.1\", \"./man/bar.1\"]}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"1.2.3\", \"description\": \"A packaged foo fooer for fooing foos\", \"main\": \"foo.js\", \"man\": [\"./man/foo.1\", \"./man/foo.2\"]}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"https://github.com/npm/cli.git\" }}\n```\n\nExample:\n```json\n{ \"repository\": \"npm/npm\",\n \"repository\": \"github:user/repo\",\n \"repository\": \"gist:11081aaa281\",\n \"repository\": \"bitbucket:user/repo\",\n \"repository\": \"gitlab:user/repo\"}\n```\n\nExample:\n```json\n{ \"repository\": { \"type\": \"git\", \"url\": \"https://github.com/facebook/react.git\", \"directory\": \"packages/react-dom\" }}\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"config\": { \"port\": \"8080\" }}\n```\n\nExample:\n```json\n{ \"dependencies\": { \"foo\": \"1.0.0 - 2.9999.9999\", \"bar\": \">=1.0.2 <2.1.2\", \"baz\": \">1.0.2 <=2.3.4\", \"boo\": \"2.0.1\", \"qux\": \"<1.0.0 || >=2.3.1 <2.4.5 || >=2.5.2 <3.0.0\", \"asd\": \"http://asdf.com/asdf.tar.gz\", \"til\": \"~1.2\", \"elf\": \"~1.2.3\", \"two\": \"2.x\", \"thr\": \"3.3.x\", \"lat\": \"latest\", \"dyl\": \"file:../dyl\" }}\n```\n\nExample:\n```bash\n<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]\n```\n\nExample:\n```bash\ngit+ssh://git@github.com:npm/cli.git#v1.0.27git+ssh://git@github.com:npm/cli#semver:^5.0git+https://isaacs@github.com/npm/cli.gitgit://github.com/npm/cli.git#v1.0.27\n```\n\nExample:\n```json\n{ \"name\": \"foo\", \"version\": \"0.0.0\", \"dependencies\": { \"express\": \"expressjs/express\", \"mocha\": \"mochajs/mocha#4727d357ea\", \"module\": \"user/repo#feature\\/branch\" }}\n```\n\nExample:\n```bash\n../foo/bar~/foo/bar./foo/bar/foo/bar\n```\n\nExample:\n```json\n{ \"name\": \"baz\", \"dependencies\": { \"bar\": \"file:../foo/bar\" }}\n```\n\nExample:\n```json\n{ \"name\": \"ethopia-waza\", \"description\": \"a delightfully fruity coffee varietal\", \"version\": \"1.2.3\", \"devDependencies\": { \"coffee-script\": \"~1.6.3\" }, \"scripts\": { \"prepare\": \"coffee -o lib/ -c src/waza.coffee\" }, \"main\": \"lib/waza.js\"}\n```\n\nExample:\n```json\n{ \"name\": \"tea-latte\", \"version\": \"1.3.5\", \"peerDependencies\": { \"tea\": \"2.x\" }}\n```\n\nExample:\n```bash\n├── tea-latte@1.3.5└── tea@2.2.0\n```\n\nExample:\n```json\n{ \"name\": \"tea-latte\", \"version\": \"1.3.5\", \"peerDependencies\": { \"tea\": \"2.x\", \"soy-milk\": \"1.2\" }, \"peerDependenciesMeta\": { \"soy-milk\": { \"optional\": true } }}\n```\n\nExample:\n```json\n{ \"name\": \"awesome-web-framework\", \"version\": \"1.0.0\", \"bundleDependencies\": [\"renderized\", \"super-streams\"]}\n```\n\nExample:\n```js\ntry { var foo = require(\"foo\"); var fooVersion = require(\"foo/package.json\").version;} catch (er) { foo = null;}if (notGoodFooVersion(fooVersion)) { foo = null;}\n// .. then later in your program ..\nif (foo) { foo.doFooThings();}\n```\n\nExample:\n```json\n{ \"overrides\": { \"foo\": \"1.0.0\" }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"foo\": { \".\": \"1.0.0\", \"bar\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"bar\": { \"foo\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"baz\": { \"bar\": { \"foo\": \"1.0.0\" } } }}\n```\n\nExample:\n```json\n{ \"overrides\": { \"bar@2.0.0\": { \"foo\": \"1.0.0\" } }}\n```\n\nExample:\n```json\n{ \"dependencies\": { \"foo\": \"^1.0.0\" }, \"overrides\": { // BAD, will throw an EOVERRIDE error // \"foo\": \"^2.0.0\" // GOOD, specs match so override is allowed // \"foo\": \"^1.0.0\" // BEST, the override is defined as a reference to the dependency \"foo\": \"$foo\", // the referenced package does not need to match the overridden one \"bar\": \"$foo\" }}\n```\n\nExample:\n```json\n{ \"engines\": { \"node\": \">=0.10.3 <15\" }}\n```\n\nExample:\n```json\n{ \"engines\": { \"npm\": \"~1.0.20\" }}\n```\n\nExample:\n```json\n{ \"os\": [\"darwin\", \"linux\"]}\n```\n\nExample:\n```json\n{ \"os\": [\"!win32\"]}\n```\n\nExample:\n```json\n{ \"cpu\": [\"x64\", \"ia32\"]}\n```\n\nExample:\n```json\n{ \"cpu\": [\"!arm\", \"!mips\"]}\n```\n\nExample:\n```json\n{ \"name\": \"workspace-example\", \"workspaces\": [\"./packages/*\"]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.456Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":47,"totalLines":246,"estimatedTokens":1546}}216{"id":"doc-npm_link_npm_docs-c12ba21d","source":"documentation","title":"npm-link | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-link","text":"Example:\n```bash\nnpm link [<package-spec>]\nalias: ln\n```\n\nExample:\n```bash\ncd ~/projects/node-redis # go into the package directorynpm link # creates global linkcd ~/projects/node-bloggy # go into some other package directory.npm link redis # link-install the package\n```\n\nExample:\n```bash\ncd ~/projects/node-bloggy # go into the dir of your main projectnpm link ../node-redis # link the dir of your dependency\n```\n\nExample:\n```bash\n(cd ../node-redis; npm link)npm link redis\n```\n\nExample:\n```bash\nnpm link @myorg/privatepackage\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.456Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":5,"totalLines":27,"estimatedTokens":147}}217{"id":"doc-npm_npm_docs-8c60db2f","source":"documentation","title":"npm | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm","text":"Example:\n```bash\nnpm\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.457Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":10}}218{"id":"doc-npm_fund_npm_docs-1348af66","source":"documentation","title":"npm-fund | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-fund","text":"Example:\n```bash\nnpm fund [<package-spec>]\n```\n\nExample:\n```bash\n$ npm fundtest-workspaces-fund@1.0.0+-- https://example.com/a| | `-- a@1.0.0| `-- https://example.com/maintainer| `-- foo@1.0.0+-- https://example.com/npmcli-funding| `-- @npmcli/test-funding`-- https://example.com/org `-- bar@2.0.0\n```\n\nExample:\n```bash\n$ npm fund -w atest-workspaces-fund@1.0.0`-- https://example.com/a | `-- a@1.0.0 `-- https://example.com/maintainer `-- foo@2.0.0\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.457Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":121}}219{"id":"doc-npm_adduser_npm_docs-61635359","source":"documentation","title":"npm-adduser | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-adduser","text":"Example:\n```bash\nnpm adduser\nalias: add-user\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.457Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":106}}220{"id":"doc-npm_help_npm_docs-4e453197","source":"documentation","title":"npm-help | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-help","text":"Example:\n```bash\nnpm help <term> [<terms..>]\nalias: hlep\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.457Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":19}}221{"id":"doc-npm_help_search_npm_docs-f7f0a644","source":"documentation","title":"npm-help-search | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-help-search","text":"Example:\n```bash\nnpm help-search <text>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.457Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}222{"id":"doc-npm_install_npm_docs-238ec1f6","source":"documentation","title":"npm-install | npm Docs","url":"https://docs.npmjs.com/cli/v11/commands/npm-install","text":"Example:\n```bash\nnpm install [<package-spec> ...]\naliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall\n```\n\nExample:\n```bash\nnpm install ../../other-package --install-linksnpm install ./sub-package\n```\n\nExample:\n```bash\nnpm install ./package.tgz\n```\n\nExample:\n```bash\nnpm install https://github.com/indexzero/forever/tarball/v0.5.6\n```\n\nExample:\n```bash\nnpm install sax\n```\n\nExample:\n```bash\nnpm install saxnpm install githubname/reponamenpm install @myorg/privatepackagenpm install node-tap --save-devnpm install dtrace-provider --save-optionalnpm install readable-stream --save-exactnpm install ansi-regex --save-bundle\n```\n\nExample:\n```bash\nnpm install my-react@npm:reactnpm install jquery2@npm:jquery@2npm install jquery3@npm:jquery@3npm install npa@npm:npm-package-arg\n```\n\nExample:\n```bash\nnpm install sax@latestnpm install @myorg/mypackage@latest\n```\n\nExample:\n```bash\nnpm install sax@0.1.1npm install @myorg/privatepackage@1.5.0\n```\n\nExample:\n```bash\nnpm install sax@\">=0.1.0 <0.2.0\"npm install @myorg/privatepackage@\"16 - 17\"\n```\n\nExample:\n```bash\nnpm install package@^1.2.3-beta.1 # Matches 1.2.3-beta.1, 1.2.3-beta.2, 1.2.4-beta.1, etc.npm install package@^1.0.0-0 # Matches all 1.x.x prereleases and stable versions\n```\n\nExample:\n```bash\n<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]\n```\n\nExample:\n```bash\nnpm install git+ssh://git@github.com:npm/cli.git#v1.0.27npm install git+ssh://git@github.com:npm/cli#pull/273npm install git+ssh://git@github.com:npm/cli#semver:^5.0npm install git+https://isaacs@github.com/npm/cli.gitnpm install git://github.com/npm/cli.git#v1.0.27GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@github.com:npm/cli.git\n```\n\nExample:\n```bash\nnpm install mygithubuser/myprojectnpm install github:mygithubuser/myproject\n```\n\nExample:\n```bash\nnpm install gist:101a11beef\n```\n\nExample:\n```bash\nnpm install bitbucket:mybitbucketuser/myproject\n```\n\nExample:\n```bash\nnpm install gitlab:mygitlabuser/myprojectnpm install gitlab:myusr/myproj#semver:^5.0\n```\n\nExample:\n```bash\nnpm install sax@\">=0.1.0 <0.2.0\" bench supervisor\n```\n\nExample:\n```bash\nnpm install sax --force\n```\n\nExample:\n```bash\nmin-release-age=7min-release-age-exclude[]=@myorg/*min-release-age-exclude[]=my-internal-pkg\n```\n\nExample:\n```bash\nA+-- B+-- C+-- D\n```\n\nExample:\n```bash\nA+-- B+-- C `-- D@2+-- D@1\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.459Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":22,"totalLines":112,"estimatedTokens":607}}223{"id":"doc-npm_completion_npm_docs-cd7adcc8","source":"documentation","title":"npm-completion | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-completion","text":"Example:\n```bash\nnpm completion\n```\n\nExample:\n```bash\nnpm completion >> ~/.bashrcnpm completion >> ~/.zshrc\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.459Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":32}}224{"id":"doc-developers_npm_docs-96bea05a","source":"documentation","title":"Developers | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/developers","text":"Example:\n```bash\ngit://github.com/user/project.git#commit-ishgit+ssh://user@hostname:project.git#commit-ishgit+http://user@hostname/project/blah.git#commit-ishgit+https://user@hostname/project/blah.git#commit-ish\n```\n\nExample:\n```bash\nnpm install . -g\n```\n\nExample:\n```bash\nnpm link\n```\n\nExample:\n```bash\ncd ../some-other-foldernpm install ../my-package\n```\n\nExample:\n```bash\nnpm install --install-strategy=linkednpm test\n```\n\nExample:\n```bash\nnpm adduser\n```\n\nExample:\n```bash\nnpm publish\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.460Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":36,"estimatedTokens":127}}225{"id":"doc-npm_cache_npm_docs-023217fd","source":"documentation","title":"npm-cache | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-cache","text":"Example:\n```bash\nnpm cache add <package-spec>npm cache clean [<key>]npm cache ls [<name>@<version>]npm cache verify\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.460Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":34}}226{"id":"doc-npm_adduser_npm_docs-b21dd096","source":"documentation","title":"npm-adduser | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-adduser","text":"Example:\n```bash\nnpm adduser\naliases: login, add-user\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.460Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":108}}227{"id":"doc-npm_npm_docs-1107b745","source":"documentation","title":"npm | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm","text":"Example:\n```bash\nnpm\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.460Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":10}}228{"id":"doc-npm_access_npm_docs-2a683f99","source":"documentation","title":"npm-access | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-access","text":"Example:\n```bash\nnpm access public [<package>]npm access restricted [<package>]npm access grant <read-only|read-write> <scope:team> [<package>]npm access revoke <scope:team> [<package>]npm access 2fa-required [<package>]npm access 2fa-not-required [<package>]npm access ls-packages [<user>|<scope>|<scope:team>]npm access ls-collaborators [<package> [<user>]]npm access edit [<package>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.461Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":101}}229{"id":"doc-npm_bin_npm_docs-271dd552","source":"documentation","title":"npm-bin | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-bin","text":"Example:\n```bash\nnpm bin\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.461Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":11}}230{"id":"doc-npm_bugs_npm_docs-262308a8","source":"documentation","title":"npm-bugs | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-bugs","text":"Example:\n```bash\nnpm bugs [<pkgname> [<pkgname> ...]]\nalias: issues\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.462Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":22}}231{"id":"doc-npm_ci_npm_docs-c6f9797f","source":"documentation","title":"npm-ci | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-ci","text":"Example:\n```bash\nnpm ci\naliases: clean-install, ic, install-clean, isntall-clean\n```\n\nExample:\n```bash\n$ cd ./my/npm/project$ npm installadded 154 packages in 10s$ ls | grep package-lock\n```\n\nExample:\n```bash\n$ npm ciadded 154 packages in 5s\n```\n\nExample:\n```bash\n# .travis.ymlinstall:- npm ci# keep the npm cache around to speed up installscache: directories: - \"$HOME/.npm\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.462Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":99}}232{"id":"doc-npm_audit_npm_docs-5f120c37","source":"documentation","title":"npm-audit | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-audit","text":"Example:\n```bash\nnpm audit [fix|signatures]\n```\n\nExample:\n```bash\n$ npm audit signatures\n```\n\nExample:\n```json\n\"dist\":{ \"..omitted..\": \"..omitted..\", \"signatures\": [{ \"keyid\": \"SHA256:{{SHA256_PUBLIC_KEY}}\", \"sig\": \"a312b9c3cb4a1b693e8ebac5ee1ca9cc01f2661c14391917dcb111517f72370809...\" }]}\n```\n\nExample:\n```bash\n{ \"keys\": [{ \"expires\": null, \"keyid\": \"SHA256:{{SHA256_PUBLIC_KEY}}\", \"keytype\": \"ecdsa-sha2-nistp256\", \"scheme\": \"ecdsa-sha2-nistp256\", \"key\": \"{{B64_PUBLIC_KEY}}\" }]}\n```\n\nExample:\n```bash\n$ npm audit fix\n```\n\nExample:\n```bash\n$ npm audit fix --package-lock-only\n```\n\nExample:\n```bash\n$ npm audit fix --only=prod\n```\n\nExample:\n```bash\n$ npm audit fix --force\n```\n\nExample:\n```bash\n$ npm audit fix --dry-run --json\n```\n\nExample:\n```bash\n$ npm audit\n```\n\nExample:\n```bash\n$ npm audit --json\n```\n\nExample:\n```bash\n$ npm audit --audit-level=moderate\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.463Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":12,"totalLines":61,"estimatedTokens":227}}233{"id":"doc-npm_help_npm_docs-4bce3e6a","source":"documentation","title":"npm-help | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-help","text":"Example:\n```bash\nnpm help <term> [<terms..>]\nalias: hlep\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.463Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":19}}234{"id":"doc-npm_deprecate_npm_docs-83af56ce","source":"documentation","title":"npm-deprecate | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-deprecate","text":"Example:\n```bash\nnpm deprecate <package-spec> <message>\n```\n\nExample:\n```bash\nnpm deprecate my-thing@\"< 0.2.3\" \"critical bug fixed in v0.2.3\"\n```\n\nExample:\n```bash\nnpm deprecate my-thing@1.x \"1.x is no longer supported\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.463Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":60}}235{"id":"doc-dependency_selectors_npm_docs-afd80ca0","source":"documentation","title":"Dependency Selectors | npm Docs","url":"https://docs.npmjs.com/cli/v11/using-npm/dependency-selectors","text":"Example:\n```css\n/* return dependencies that have a `scripts.test` containing `\"tap\"` */*: attr(scripts, [test~=tap]);\n```\n\nExample:\n```css\n/* return dependencies that have a [testling config](https://ci.testling.com/guide/advanced_configuration) for opera browsers */*: attr(testling, browsers, [~=opera]);\n```\n\nExample:\n```css\n/* removes the distinction between properties & arrays *//* ie. we'd have to check the property & iterate to match selection */*:attr([keywords^=react])*:attr(contributors, :attr([name~=Jordan]))\n```\n\nExample:\n```css\n/* return dependencies that have the exact keyword \"react\" *//* this is equivalent to `*:keywords([value=\"react\"])` */*: attr([keywords=react]);\n```\n\nExample:\n```css\n/* returns */*: attr(contributors, [email=ruyadorno @github.com]);\n```\n\nExample:\n```js\nconst Arborist = require(\"@npmcli/arborist\");const arb = new Arborist({});\n```\n\nExample:\n```js\n// root-levelarb.loadActual().then(async (tree) => { // query all production dependencies const results = await tree.querySelectorAll(\".prod\"); console.log(results);});\n```\n\nExample:\n```js\n// iterativearb.loadActual().then(async (tree) => { // query for the deduped version of react const results = await tree.querySelectorAll(\"#react:not(:deduped)\"); // query the deduped react for git deps const deps = await results[0].querySelectorAll(\":type(git)\"); console.log(deps);});\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.464Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":349}}236{"id":"doc-npm_edit_npm_docs-3e0c362b","source":"documentation","title":"npm-edit | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-edit","text":"Example:\n```bash\nnpm edit <pkg>[/<subpkg>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.464Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":16}}237{"id":"doc-npm_explore_npm_docs-eedc5fb9","source":"documentation","title":"npm-explore | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-explore","text":"Example:\n```bash\nnpm explore <pkg> [ -- <command>]\n```\n\nExample:\n```bash\nnpm explore some-dependency -- git pull origin master\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.464Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":36}}238{"id":"doc-npm_explain_npm_docs-5ab5d3c6","source":"documentation","title":"npm-explain | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-explain","text":"Example:\n```bash\nnpm explain <package-spec>\nalias: why\n```\n\nExample:\n```bash\nglob@7.1.6node_modules/glob glob@\"^7.1.4\" from the root project\nglob@7.1.1 devnode_modules/tacks/node_modules/glob glob@\"^7.0.5\" from rimraf@2.6.2 node_modules/tacks/node_modules/rimraf rimraf@\"^2.6.2\" from tacks@1.3.0 node_modules/tacks dev tacks@\"^1.3.0\" from the root project\n```\n\nExample:\n```bash\n$ npm explain node_modules/nyc/node_modules/find-upfind-up@3.0.0 devnode_modules/nyc/node_modules/find-up find-up@\"^3.0.0\" from nyc@14.1.1 node_modules/nyc nyc@\"^14.1.1\" from tap@14.10.8 node_modules/tap dev tap@\"^14.10.8\" from the root project\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.464Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":167}}239{"id":"doc-npm_fund_npm_docs-f1f7ed1c","source":"documentation","title":"npm-fund | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-fund","text":"Example:\n```bash\nnpm fund [<package-spec>]\n```\n\nExample:\n```bash\n$ npm fundtest-workspaces-fund@1.0.0+-- https://example.com/a| | `-- a@1.0.0| `-- https://example.com/maintainer| `-- foo@1.0.0+-- https://example.com/npmcli-funding| `-- @npmcli/test-funding`-- https://example.com/org `-- bar@2.0.0\n```\n\nExample:\n```bash\n$ npm fund -w atest-workspaces-fund@1.0.0`-- https://example.com/a | `-- a@1.0.0 `-- https://example.com/maintainer `-- foo@2.0.0\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.464Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":121}}240{"id":"doc-npm_help_search_npm_docs-df886d82","source":"documentation","title":"npm-help-search | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-help-search","text":"Example:\n```bash\nnpm help-search <text>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.464Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}241{"id":"doc-npm_dist_tag_npm_docs-a1b954bd","source":"documentation","title":"npm-dist-tag | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-dist-tag","text":"Example:\n```bash\nnpm dist-tag add <package-spec (with version)> [<tag>]npm dist-tag rm <package-spec> <tag>npm dist-tag ls [<package-spec>]\nalias: dist-tags\n```\n\nExample:\n```bash\nnpm install <name>@<tag>\n```\n\nExample:\n```bash\nnpm install --tag <tag>\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.465Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":17,"estimatedTokens":67}}242{"id":"doc-npm_doctor_npm_docs-8a3fdf85","source":"documentation","title":"npm-doctor | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-doctor","text":"Example:\n```bash\nnpm doctor\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.465Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}243{"id":"doc-npm_hook_npm_docs-f7cbf3ca","source":"documentation","title":"npm-hook | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-hook","text":"Example:\n```bash\nnpm hook add <pkg> <url> <secret> [--type=<type>]npm hook ls [pkg]npm hook rm <id>npm hook update <id> <url> <secret>\n```\n\nExample:\n```bash\n$ npm hook add lodash https://example.com/ my-shared-secret\n```\n\nExample:\n```bash\n$ npm hook add ~substack https://example.com/ my-shared-secret\n```\n\nExample:\n```bash\n$ npm hook add @npm https://example.com/ my-shared-secret\n```\n\nExample:\n```bash\n$ npm hook ls\n```\n\nExample:\n```bash\n$ npm hook ls lodash\n```\n\nExample:\n```bash\n$ npm hook update id-deadbeef https://my-new-website.here/\n```\n\nExample:\n```bash\n$ npm hook rm id-deadbeef\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.465Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":152}}244{"id":"doc-npm_find_dupes_npm_docs-08622836","source":"documentation","title":"npm-find-dupes | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-find-dupes","text":"Example:\n```bash\nnpm find-dupes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.466Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":13}}245{"id":"doc-npm_docs_npm_docs-240a915e","source":"documentation","title":"npm-docs | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-docs","text":"Example:\n```bash\nnpm docs [<pkgname> [<pkgname> ...]]\nalias: home\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.466Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":21}}246{"id":"doc-npm_dedupe_npm_docs-a921b79a","source":"documentation","title":"npm-dedupe | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-dedupe","text":"Example:\n```bash\nnpm dedupe\nalias: ddp\n```\n\nExample:\n```bash\na+-- b <-- depends on c@1.0.x| `-- c@1.0.3`-- d <-- depends on c@~1.0.9 `-- c@1.0.10\n```\n\nExample:\n```bash\na+-- b+-- d`-- c@1.0.10\n```\n\nExample:\n```bash\na+-- b <-- depends on c@1.0.x+-- c@1.0.3`-- d <-- depends on c@1.x `-- c@1.9.9\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.466Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":4,"totalLines":22,"estimatedTokens":80}}247{"id":"doc-npm_diff_npm_docs-6f666342","source":"documentation","title":"npm-diff | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-diff","text":"Example:\n```bash\nnpm diff [...<paths>]\n```\n\nExample:\n```bash\nnpm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1\n```\n\nExample:\n```bash\ndiff --git a/package.json b/package.jsonindex v1.1.0..v1.1.1 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@ { \"name\": \"abbrev\",- \"version\": \"1.1.0\",+ \"version\": \"1.1.1\", \"description\": \"Like ruby's abbrev module, but in js\", \"author\": \"Isaac Z. Schlueter <i@izs.me>\", \"main\": \"abbrev.js\",\n```\n\nExample:\n```bash\nnpm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-path\n```\n\nExample:\n```bash\nnpm diff --diff=abbrev\n```\n\nExample:\n```bash\nnpm diff --diff=pkg@2.0.0\n```\n\nExample:\n```bash\nnpm diff --diff=1.0.0 --diff=1.1.0\n```\n\nExample:\n```bash\nnpm diff --diff=pkg@2 ./lib/ CHANGELOG.md\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.467Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":8,"totalLines":41,"estimatedTokens":192}}248{"id":"doc-npm_config_npm_docs-2dc1b467","source":"documentation","title":"npm-config | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-config","text":"Example:\n```bash\nnpm config set <key>=<value> [<key>=<value> ...]npm config get [<key> [<key> ...]]npm config delete <key> [<key> ...]npm config list [--json]npm config edit\nalias: c\n```\n\nExample:\n```bash\nnpm config set key=value [key=value...]npm set key=value [key=value...]\n```\n\nExample:\n```bash\nnpm config get [key ...]npm get [key ...]\n```\n\nExample:\n```bash\nnpm config list\n```\n\nExample:\n```bash\nnpm config delete key [key ...]\n```\n\nExample:\n```bash\nnpm config edit\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.467Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":32,"estimatedTokens":122}}249{"id":"doc-npm_exec_npm_docs-8f2148ae","source":"documentation","title":"npm-exec | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-exec","text":"Example:\n```bash\nnpm exec -- <pkg>[@<version>] [args...]npm exec --package=<pkg>[@<version>] -- <cmd> [args...]npm exec -c '<cmd> [args...]'npm exec --package=foo -c '<cmd> [args...]'\nalias: x\n```\n\nExample:\n```bash\nnpm exec --package yo --package generator-node --call \"yo node\"\n```\n\nExample:\n```bash\n$ npm exec -- tap --bail test/foo.js$ npx tap --bail test/foo.js\n```\n\nExample:\n```bash\n$ npm exec --package=foo -- bar --bar-argument# ~ or ~$ npx --package=foo bar --bar-argument\n```\n\nExample:\n```bash\n$ npm x -c 'eslint && say \"hooray, lint passed\"'$ npx -c 'eslint && say \"hooray, lint passed\"'\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json +-- b | `-- package.json `-- c `-- package.json\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"./packages/*\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.467Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":7,"totalLines":37,"estimatedTokens":206}}250{"id":"doc-npm_restart_npm_docs-a40bac47","source":"documentation","title":"npm-restart | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-restart","text":"Example:\n```bash\nnpm restart [-- <args>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.468Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":15}}251{"id":"doc-npm_repo_npm_docs-5c6d179b","source":"documentation","title":"npm-repo | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-repo","text":"Example:\n```bash\nnpm repo [<pkgname> [<pkgname> ...]]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.468Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":18}}252{"id":"doc-npm_install_test_npm_docs-1075d0f1","source":"documentation","title":"npm-install-test | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-install-test","text":"Example:\n```bash\nnpm install-test [<package-spec> ...]\nalias: it\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.468Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":21}}253{"id":"doc-npm_install_npm_docs-51e337dc","source":"documentation","title":"npm-install | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-install","text":"Example:\n```bash\nnpm install [<package-spec> ...]\naliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall\n```\n\nExample:\n```bash\nnpm install ../../other-package --install-linksnpm install ./sub-package\n```\n\nExample:\n```bash\nnpm install ./package.tgz\n```\n\nExample:\n```bash\nnpm install https://github.com/indexzero/forever/tarball/v0.5.6\n```\n\nExample:\n```bash\nnpm install sax\n```\n\nExample:\n```bash\nnpm install saxnpm install githubname/reponamenpm install @myorg/privatepackagenpm install node-tap --save-devnpm install dtrace-provider --save-optionalnpm install readable-stream --save-exactnpm install ansi-regex --save-bundle\n```\n\nExample:\n```bash\nnpm install my-react@npm:reactnpm install jquery2@npm:jquery@2npm install jquery3@npm:jquery@3npm install npa@npm:npm-package-arg\n```\n\nExample:\n```bash\nnpm install sax@latestnpm install @myorg/mypackage@latest\n```\n\nExample:\n```bash\nnpm install sax@0.1.1npm install @myorg/privatepackage@1.5.0\n```\n\nExample:\n```bash\nnpm install sax@\">=0.1.0 <0.2.0\"npm install @myorg/privatepackage@\"16 - 17\"\n```\n\nExample:\n```bash\n<protocol>://[<user>[:<password>]@]<hostname>[:<port>][:][/]<path>[#<commit-ish> | #semver:<semver>]\n```\n\nExample:\n```bash\nnpm install git+ssh://git@github.com:npm/cli.git#v1.0.27npm install git+ssh://git@github.com:npm/cli#pull/273npm install git+ssh://git@github.com:npm/cli#semver:^5.0npm install git+https://isaacs@github.com/npm/cli.gitnpm install git://github.com/npm/cli.git#v1.0.27GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@github.com:npm/cli.git\n```\n\nExample:\n```bash\nnpm install mygithubuser/myprojectnpm install github:mygithubuser/myproject\n```\n\nExample:\n```bash\nnpm install gist:101a11beef\n```\n\nExample:\n```bash\nnpm install bitbucket:mybitbucketuser/myproject\n```\n\nExample:\n```bash\nnpm install gitlab:mygitlabuser/myprojectnpm install gitlab:myusr/myproj#semver:^5.0\n```\n\nExample:\n```bash\nnpm install sax@\">=0.1.0 <0.2.0\" bench supervisor\n```\n\nExample:\n```bash\nnpm install sax --force\n```\n\nExample:\n```bash\nA+-- B+-- C+-- D\n```\n\nExample:\n```bash\nA+-- B+-- C `-- D@2+-- D@1\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.469Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":20,"totalLines":102,"estimatedTokens":529}}254{"id":"doc-npm_start_npm_docs-905ed924","source":"documentation","title":"npm-start | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-start","text":"Example:\n```bash\nnpm start [-- <args>]\n```\n\nExample:\n```json\n{ \"scripts\": { \"start\": \"node foo.js\" }}\n```\n\nExample:\n```bash\nnpm start\n> npm@x.x.x start> node foo.js\n(foo.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.471Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":55}}255{"id":"doc-npm_root_npm_docs-7d466032","source":"documentation","title":"npm-root | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-root","text":"Example:\n```bash\nnpm root\n```\n\nExample:\n```bash\n#!/bin/bashglobal_node_modules=\"$(npm root --global)\"echo \"Global packages installed in: ${global_node_modules}\"\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.471Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":2,"totalLines":11,"estimatedTokens":45}}256{"id":"doc-npm_token_npm_docs-5fa19148","source":"documentation","title":"npm-token | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-token","text":"Example:\n```bash\nnpm token listnpm token revoke <id|token>npm token create [--read-only] [--cidr=list]\n```\n\nExample:\n```bash\n+--------+---------+------------+----------+----------------+| id | token | created | read-only | CIDR whitelist |+--------+---------+------------+----------+----------------+| 7f3134 | 1fa9ba… | 2017-10-02 | yes | |+--------+---------+------------+----------+----------------+| c03241 | af7aef… | 2017-10-02 | no | 192.168.0.1/24 |+--------+---------+------------+----------+----------------+| e0cf92 | 3a436a… | 2017-10-02 | no | |+--------+---------+------------+----------+----------------+| 63eb9d | 74ef35… | 2017-09-28 | no | |+--------+---------+------------+----------+----------------+| 2daaa8 | cbad5f… | 2017-09-26 | no | |+--------+---------+------------+----------+----------------+| 68c2fe | 127e51… | 2017-09-23 | no | |+--------+---------+------------+----------+----------------+| 6334e1 | 1dadd1… | 2017-09-23 | no | |+--------+---------+------------+----------+----------------+\n```\n\nExample:\n```bash\n+----------------+--------------------------------------+| token | a73c9572-f1b9-8983-983d-ba3ac3cc913d |+----------------+--------------------------------------+| cidr_whitelist | |+----------------+--------------------------------------+| readonly | false |+----------------+--------------------------------------+| created | 2017-10-02T07:52:24.838Z |+----------------+--------------------------------------+\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.472Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":16,"estimatedTokens":430}}257{"id":"doc-npm_test_npm_docs-78c48049","source":"documentation","title":"npm-test | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-test","text":"Example:\n```bash\nnpm test [-- <args>]\naliases: tst, t\n```\n\nExample:\n```json\n{ \"scripts\": { \"test\": \"node test.js\" }}\n```\n\nExample:\n```bash\nnpm test> npm@x.x.x test> node test.js\n(test.js output would be here)\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.472Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":3,"totalLines":18,"estimatedTokens":58}}258{"id":"doc-npm_team_npm_docs-b881f246","source":"documentation","title":"npm-team | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-team","text":"Example:\n```bash\nnpm team create <scope:team> [--otp <otpcode>]npm team destroy <scope:team> [--otp <otpcode>]npm team add <scope:team> <user> [--otp <otpcode>]npm team rm <scope:team> <user> [--otp <otpcode>]npm team ls <scope>|<scope:team>\n```\n\nExample:\n```bash\nnpm team create @org:newteam\n```\n\nExample:\n```bash\nnpm team add @org:newteam username\n```\n\nExample:\n```bash\nnpm team rm @org:newteam username\n```\n\nExample:\n```bash\nnpm team ls @org\n```\n\nExample:\n```bash\nnpm team ls @org:newteam\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.472Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":31,"estimatedTokens":128}}259{"id":"doc-npm_shrinkwrap_npm_docs-ddc9603f","source":"documentation","title":"npm-shrinkwrap | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-shrinkwrap","text":"Example:\n```bash\nnpm shrinkwrap\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.472Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":13}}260{"id":"doc-npm_stars_npm_docs-87483c1c","source":"documentation","title":"npm-stars | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-stars","text":"Example:\n```bash\nnpm stars [<user>]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.472Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":14}}261{"id":"doc-npm_star_npm_docs-3287348b","source":"documentation","title":"npm-star | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-star","text":"Example:\n```bash\nnpm star [<package-spec>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.473Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":16}}262{"id":"doc-npm_rebuild_npm_docs-4bd6290b","source":"documentation","title":"npm-rebuild | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-rebuild","text":"Example:\n```bash\nnpm rebuild [<package-spec>] ...]\nalias: rb\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.473Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":20}}263{"id":"doc-npm_whoami_npm_docs-16531d77","source":"documentation","title":"npm-whoami | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-whoami","text":"Example:\n```bash\nnpm whoami\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.473Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":12}}264{"id":"doc-config_npm_docs-6a93e190","source":"documentation","title":"config | npm Docs","url":"https://docs.npmjs.com/cli/v8/using-npm/config","text":"Example:\n```bash\nnpm ls --par# same as:npm ls --parseable\n```\n\nExample:\n```bash\nnpm ls -gpld# same as:npm ls --global --parseable --long --loglevel info\n```\n\nExample:\n```ini\nca=\"-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----\"\n```\n\nExample:\n```ini\nca[]=\"...\"ca[]=\"...\"\n```\n\nExample:\n```bash\nnpm exec --package yo --package generator-node --call \"yo node\"\n```\n\nExample:\n```ini\ncert=\"-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----\"\n```\n\nExample:\n```ini\nkey=\"-----BEGIN PRIVATE KEY-----\\nXXXX\\nXXXX\\n-----END PRIVATE KEY-----\"\n```\n\nExample:\n```bash\n# log in, linking the scope to the custom registrynpm login --scope=@mycorp --registry=https://registry.mycorp.com\n# log out, removing the link and the auth tokennpm logout --scope=@mycorp\n```\n\nExample:\n```bash\n# accept all defaults, and create a package named \"@foo/whatever\",# instead of just named \"whatever\"npm init --scope=@foo --yes\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.476Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":9,"totalLines":47,"estimatedTokens":236}}265{"id":"doc-npm_search_npm_docs-bfa7c51a","source":"documentation","title":"npm-search | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-search","text":"Example:\n```bash\nnpm search [search terms ...]\naliases: find, s, se\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.477Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":7,"estimatedTokens":22}}266{"id":"doc-npm_run_script_npm_docs-0f3f17f8","source":"documentation","title":"npm-run-script | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-run-script","text":"Example:\n```bash\nnpm run-script <command> [-- <args>]\naliases: run, rum, urn\n```\n\nExample:\n```bash\nnpm run test -- --grep=\"pattern\"\n```\n\nExample:\n```bash\n\"scripts\": {\"test\": \"tap test/*.js\"}\n```\n\nExample:\n```bash\n\"scripts\": {\"test\": \"node_modules/.bin/tap test/*.js\"}\n```\n\nExample:\n```bash\n.+-- package.json`-- packages +-- a | `-- package.json +-- b | `-- package.json `-- c `-- package.json\n```\n\nExample:\n```bash\n{ \"workspaces\": [ \"./packages/*\" ]}\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.477Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":6,"totalLines":32,"estimatedTokens":123}}267{"id":"doc-npm_unstar_npm_docs-a653da7d","source":"documentation","title":"npm-unstar | npm Docs","url":"https://docs.npmjs.com/cli/v8/commands/npm-unstar","text":"Example:\n```bash\nnpm unstar [<package-spec>...]\n```\n\n<|endofdoc|>","metadata":{"transformedAt":"2026-08-18T15:17:19.477Z","totalSectionsIncluded":0,"totalCodeBlocksIncluded":1,"totalLines":6,"estimatedTokens":17}}268 