{"name":"@npmcli/redact","version":"3.2.1","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/redact@3.2.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"},{"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":"f09a7d812edfb520ef630d5b38ec774463994552","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-3.2.1.tgz","fileCount":9,"integrity":"sha512-VW+1SW5CkP1aSegFQx7/AawdzM6b4UP6R3QET192ON4IAP6iK++IG6Ztg+bkoeGN8lh/prOzT+ZkNgWQrAXLNQ==","signatures":[{"sig":"MEQCICgqklWurnKAR+QDHPWoyisanvn561Ggd2I+sFvTTS1qAiABZ5wRrknkV69DIBhz82Yc2CtSbFDKbQAUo14qn+L3vw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fredact@3.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16859,"size":5841,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-3.2.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":"0ab840c8b4059da54044e3e6ce318507bf99da78","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.24.3","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.10","@npmcli/template-oss":"4.24.3","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/redact_3.2.1_1746205673736_0.8444365015170796","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":1746205673946,"_cnpm_publish_time":1746205673946,"dist-tags":{"latest":"5.0.0"}}