{"name":"@npmcli/redact","version":"3.1.1","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/redact@3.1.1","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"}],"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":"ac295c148d01c70a5a006d2e162388b3cef15195","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-3.1.1.tgz","fileCount":9,"integrity":"sha512-3Hc2KGIkrvJWJqTbvueXzBeZlmvoOxc2jyX00yzr3+sNFquJg0N8hH4SAPLPVrkWIRQICVpVgjrss971awXVnA==","signatures":[{"sig":"MEUCIQDfoW1MK2DGhfU7cVP0fHhieYxDdi4xpcyykoSWocPyGwIgQL47XFDDUNfpO/VoIh0ZyRkOeuGIaKNiYk33ruF5X54=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fredact@3.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16538,"size":5778,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-3.1.1.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":"36eeeaba15377fa8a8b305024999fdb0887a3184","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.0.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.13.1","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.10","@npmcli/template-oss":"4.23.3","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/redact_3.1.1_1738172372558_0.4234303477625758","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":1738172372747,"_cnpm_publish_time":1738172372747,"dist-tags":{"latest":"5.0.0"}}