{"name":"@npmcli/redact","version":"0.0.0","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/redact@0.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":"78e5ca0338e3c9cbfee9cac486d35b72d3034a13","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-0.0.0.tgz","fileCount":4,"integrity":"sha512-PEWoSvmtJ2jD9TSJMEU2sc+IejbimTW/dcTPdjUIvy3bhCqDjqVa+YTGsf8/wNcZJd6CsTCLOspXhjVIl95SfQ==","signatures":[{"sig":"MEYCIQCVBMQ6vOWVU9hQhytfvK1j8HzmK5yHYz682+9MD0ItwwIhAOKe8sEg8v+S/AtrKhsK2UvV6tdb6CbAPSGPsAeRLRuY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4367,"size":2229,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-0.0.0.tgz"},"main":"lib/index.js","gitHead":"5307c80604767dfe9ebaa9956dd71c63dd64b4cb","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":"lukekarrys","email":"luke@lukekarrys.com"},"repository":{"url":"git+https://github.com/npm/redact.git","type":"git"},"_npmVersion":"10.4.0","description":"Redact sensitive npm information from output","directories":{},"templateOSS":{"version":"4.21.3","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"20.7.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.10","@npmcli/template-oss":"4.21.3","@npmcli/eslint-config":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/redact_0.0.0_1712140797987_0.5922763432472857","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":1712140798128,"_cnpm_publish_time":1712140798128,"dist-tags":{"latest":"5.0.0"}}