{"name":"@npmcli/redact","version":"1.0.0","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/redact@1.0.0","maintainers":[{"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"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"homepage":"https://github.com/npm/redact#readme","bugs":{"url":"https://github.com/npm/redact/issues"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"dist":{"shasum":"407cdb7ffd6d90dd021cd4cef49905399668dbf3","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-1.0.0.tgz","fileCount":4,"integrity":"sha512-f5JW83rXhcbWeLjM5wK+lVJIaw+4eD+nWePG2XKVWs+sQh5zK0dYCFWFo0qDnKKsZ8eEtJh3P/YWnhH5MIIghA==","signatures":[{"sig":"MEYCIQDw6dEg/swuYvFGT825fh/FmpSZtUb486YzXcO01cHiWwIhALLvUZAJGUDT2XqFpHY3sOg9tt3SzLI5ENLvxUZOIL/t","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fredact@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4431,"size":2278,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-1.0.0.tgz"},"main":"lib/index.js","engines":{"node":">=18.0.0"},"gitHead":"f0c7dc0317efc1c13a3e33d58b4f496abe57543c","scripts":{"lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --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":"10.5.0","description":"Redact sensitive npm information from output","directories":{},"templateOSS":{"publish":true,"version":"4.21.3","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.10","@npmcli/template-oss":"4.21.3","@npmcli/eslint-config":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/redact_1.0.0_1712143179880_0.9146591801991952","host":"s3://npm-registry-packages"},"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":1712143180012,"_cnpm_publish_time":1712143180012,"dist-tags":{"latest":"5.0.0"}}