{"name":"@npmcli/redact","version":"2.0.1","description":"Redact sensitive npm information from output","main":"lib/index.js","exports":{".":"./lib/index.js","./server":"./lib/server.js","./package.json":"./package.json"},"scripts":{"test":"tap","lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","lintfix":"npm run lint -- --fix","snap":"tap","posttest":"npm run lint"},"keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/npm/redact.git"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.21.3","publish":true},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"],"timeout":120},"devDependencies":{"@npmcli/eslint-config":"^4.0.2","@npmcli/template-oss":"4.21.3","tap":"^16.3.10"},"engines":{"node":"^16.14.0 || >=18.0.0"},"_id":"@npmcli/redact@2.0.1","gitHead":"a5d199ccea4d5dedf73fda38ce442ccfe690a8d5","bugs":{"url":"https://github.com/npm/redact/issues"},"homepage":"https://github.com/npm/redact#readme","_nodeVersion":"20.13.1","_npmVersion":"10.8.1","dist":{"integrity":"sha512-YgsR5jCQZhVmTJvjduTOIHph0L73pK8xwMVaDY0PatySqVM9AZj93jpoXYSJqfHFxFkN9dmqTw6OiqExsS3LPw==","shasum":"95432fd566e63b35c04494621767a4312c316762","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-2.0.1.tgz","fileCount":8,"unpackedSize":14937,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fredact@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJjpA2SH3+XjDa4PsT+NOdDud3DrWeu2rk1G43WMSBNwIgd6gDy4gAQsMsCmK25ZywuBFiw+qlcVDvGNEqnI2wDgE="}],"size":5257,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-2.0.1.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"maintainers":[{"name":"reggi","email":"reggi@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"fritzy","email":"fritzy@github.com"},{"name":"gar","email":"gar+npm@danger.computer"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redact_2.0.1_1717593206600_0.3042206978421329"},"_hasShrinkwrap":false,"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":1717593206748,"_cnpm_publish_time":1717593206748,"dist-tags":{"latest":"5.0.0"}}