{"name":"@npmcli/redact","version":"3.2.0","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/redact@3.2.0","maintainers":[{"name":"fritzy","email":"fritzy@github.com"},{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/redact#readme","bugs":{"url":"https://github.com/npm/redact/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"],"timeout":120},"dist":{"shasum":"d13f8c27221d9c400f552a531e8d2f80fed6ca1a","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-3.2.0.tgz","fileCount":9,"integrity":"sha512-NyJXHoZwJE0iUsCDTclXf1bWHJTsshtnp5xUN6F2vY+OLJv6d2cNc4Do6fKNkmPToB0GzoffxRh405ibTwG+Og==","signatures":[{"sig":"MEUCIQCRBCg3/YGO3uX7hdiRrhVrWxhvWzUHj8cFpYbwQG91hgIgEoLGUMnMQL7Pqig0DFiOSNZ8rRrlaB5e+oCZog5/xcY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fredact@3.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16759,"size":5794,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-3.2.0.tgz"},"main":"lib/index.js","engines":{"node":"^18.17.0 || >=20.5.0"},"exports":{".":"./lib/index.js","./server":"./lib/server.js","./package.json":"./package.json"},"gitHead":"433f1545bd18fe4c07bb933d691b679e02a9885d","scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"repository":{"url":"git+https://github.com/npm/redact.git","type":"git"},"_npmVersion":"11.3.0","description":"Redact sensitive npm information from output","directories":{},"templateOSS":{"publish":true,"version":"4.23.3","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.10","@npmcli/template-oss":"4.23.3","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/redact_3.2.0_1745253993764_0.57092909900304","host":"s3://npm-registry-packages-npm-production"},"readme":"# @npmcli/redact\n\nRedact sensitive npm information from output.\n\n## API\n\nThis will redact `npm_` prefixed tokens and UUIDs from values.\n\nIt will also replace passwords in stringified URLs.\n\n### `redact(string)`\n\nRedact values from a single value\n\n```js\nconst { redact } = require('@npmcli/redact')\n\nredact('https://user:pass@registry.npmjs.org/')\n// https://user:***@registry.npmjs.org/\n\nredact(`https://registry.npmjs.org/path/npm_${'a'.repeat('36')}`)\n// https://registry.npmjs.org/path/npm_***\n```\n\n### `redactLog(string | string[])`\n\nRedact values from a string or array of strings.\n\nThis method will also split all strings on `\\s` and `=` and iterate over them.\n\n```js\nconst { redactLog } = require('@npmcli/redact')\n\nredactLog([\n  'Something --x=https://user:pass@registry.npmjs.org/ foo bar',\n  '--url=http://foo:bar@registry.npmjs.org',\n])\n// [\n//   'Something --x=https://user:***@registry.npmjs.org/ foo bar',\n//   '--url=http://foo:***@registry.npmjs.org/',\n// ]\n```\n","publish_time":1745253993941,"_cnpm_publish_time":1745253993941,"dist-tags":{"latest":"5.0.0"}}