{"name":"@npmcli/redact","version":"2.0.0","keywords":[],"author":{"name":"GitHub Inc."},"license":"ISC","_id":"@npmcli/redact@2.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/**"],"timeout":120},"dist":{"shasum":"72f9689e87bd0ce419c35e75b8470ce8ac9e14f0","tarball":"http://registry-npm.ywwl.com/@npmcli/redact/download/@npmcli/redact-2.0.0.tgz","fileCount":8,"integrity":"sha512-SEjCPAVHWYUIQR+Yn03kJmrJjZDtJLYpj300m3HV9OTRZNpC5YpbMsM3eTkECyT4aWj8lDr9WeY6TWefpubtYQ==","signatures":[{"sig":"MEUCIH0SITaf7l3koS4MKRLVS3DnzHuIuL3a9NdrAcdhqw5pAiEA8Z8OIXMHdhklnOToWS44LVYOZIVaSf93GKtO9mJUV9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@npmcli%2fredact@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14378,"size":5104,"noattachment":false,"key":"/@npmcli/redact/-/@npmcli/redact-2.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^16.14.0 || >=18.0.0"},"exports":{".":"./lib/index.js","./server":"./lib/server.js","./package.json":"./package.json"},"gitHead":"b430e950fc49a400195d092a64f87d0a10d26a8d","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.6.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.12.2","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.10","@npmcli/template-oss":"4.21.3","@npmcli/eslint-config":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/redact_2.0.0_1714152175937_0.4130937079443624","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":1714152176090,"_cnpm_publish_time":1714152176090,"dist-tags":{"latest":"5.0.0"}}