{"id":51241503,"url":"https://github.com/funnyhcat-dotcom/json-sample-redactor","last_synced_at":"2026-06-29T01:00:16.340Z","repository":{"id":368066952,"uuid":"1283425517","full_name":"funnyhcat-dotcom/json-sample-redactor","owner":"funnyhcat-dotcom","description":"Redact secrets and personal data from JSON before sharing examples.","archived":false,"fork":false,"pushed_at":"2026-06-28T23:11:38.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-29T00:06:06.057Z","etag":null,"topics":["cli","developer-tools","json","nodejs","pii","privacy","redaction","secrets","security"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funnyhcat-dotcom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-28T23:11:31.000Z","updated_at":"2026-06-28T23:11:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/funnyhcat-dotcom/json-sample-redactor","commit_stats":null,"previous_names":["funnyhcat-dotcom/json-sample-redactor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/funnyhcat-dotcom/json-sample-redactor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyhcat-dotcom%2Fjson-sample-redactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyhcat-dotcom%2Fjson-sample-redactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyhcat-dotcom%2Fjson-sample-redactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyhcat-dotcom%2Fjson-sample-redactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funnyhcat-dotcom","download_url":"https://codeload.github.com/funnyhcat-dotcom/json-sample-redactor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyhcat-dotcom%2Fjson-sample-redactor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34909138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","developer-tools","json","nodejs","pii","privacy","redaction","secrets","security"],"created_at":"2026-06-29T01:00:15.074Z","updated_at":"2026-06-29T01:00:16.332Z","avatar_url":"https://github.com/funnyhcat-dotcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-sample-redactor\n\nRedact secrets and personal data from JSON before sharing examples.\n\nUse it before pasting API responses, logs, webhook payloads, bug reports, or docs examples into GitHub issues, Slack, tickets, or public READMEs.\n\n## Quick start\n\n```bash\nnpx json-sample-redactor response.json\n```\n\n```bash\n# stdin works too\ncat response.json | npx json-sample-redactor --format report\n\n# compact output for scripts\nnpx json-sample-redactor response.json --format compact \u003e safe-response.json\n\n# add your own sensitive key pattern\nnpx json-sample-redactor response.json --key tenant --key organization\n```\n\n## What gets redacted\n\n- Sensitive keys like `password`, `token`, `secret`, `apiKey`, `authorization`, `cookie`, `session`\n- Personal data keys like `email`, `phone`, `address`, `ssn`, `creditCard`\n- Sensitive values inside strings: emails, JWTs, GitHub tokens, AWS access keys, bearer tokens, phone-like numbers, card-like numbers\n\n## CLI\n\n```text\njson-sample-redactor [file] [options]\njson-redact [file] [options]\n```\n\nOptions:\n\n- `--format pretty|compact|report`\n- `--jsonl`\n- `--key \u003cpattern\u003e` for custom key regexes\n- `--keep-shape` for harmless example-looking replacements\n- `-o, --output \u003cfile\u003e`\n\n## Example\n\nInput:\n\n```json\n{\n  \"email\": \"ada@example.com\",\n  \"apiKey\": \"ghp_abcdefghijklmnopqrstuvwxyz123456\",\n  \"message\": \"Contact ada@example.com\"\n}\n```\n\nOutput:\n\n```json\n{\n  \"email\": \"[REDACTED]\",\n  \"apiKey\": \"[REDACTED]\",\n  \"message\": \"Contact [REDACTED_EMAIL]\"\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyhcat-dotcom%2Fjson-sample-redactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnyhcat-dotcom%2Fjson-sample-redactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyhcat-dotcom%2Fjson-sample-redactor/lists"}