{"id":25847534,"url":"https://github.com/dakdevs/redakt-js","last_synced_at":"2025-10-25T04:38:10.645Z","repository":{"id":47416539,"uuid":"193020999","full_name":"dakdevs/redakt-js","owner":"dakdevs","description":"Recursively redact an object.","archived":false,"fork":false,"pushed_at":"2023-01-04T00:48:51.000Z","size":275,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T16:57:48.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/redakt","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dakdevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-21T03:03:06.000Z","updated_at":"2019-06-21T03:32:54.000Z","dependencies_parsed_at":"2023-02-01T16:00:16.833Z","dependency_job_id":null,"html_url":"https://github.com/dakdevs/redakt-js","commit_stats":null,"previous_names":["dakdevs/redakt-js","vinlock/redakt-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dakdevs/redakt-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Fredakt-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Fredakt-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Fredakt-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Fredakt-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dakdevs","download_url":"https://codeload.github.com/dakdevs/redakt-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakdevs%2Fredakt-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280906490,"owners_count":26411408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"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":[],"created_at":"2025-03-01T10:27:20.453Z","updated_at":"2025-10-25T04:38:10.627Z","avatar_url":"https://github.com/dakdevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redakt Object\n\n## Installation\n```bash\n# With Yarn\nyarn add redakt\n\n# With NPM \nnpm install redakt\n```\n\n## Usage\n```js\nimport redakt from 'redakt';\n\nconst objWithSecrets = {\n  password: 'THISISMYPASSWORD',\n};\n\nconst redactedObject = redakt(objWithSecrets, {\n  enabled: true,\n  replace: '[REDACTED]',\n  keys: [\n    'password',\n  ],\n});\n\nconsole.log(redactedObject);\n// {\n//    password: '[REDACTED]'\n// }\n```\n\n## Parameters\n\n### Element `Object` or `JSON`\nRedact's first parameter is the object or JSON string that you would like to recursively redact.\n\n### Options `Object`\nRedact's second parameter is the options object.\n\n| Parameter  | Type | Default | Description |\n|---|---|---|---|\n| `enabled`  | `Boolean` | `true` | Enable or disable redaction. |\n| `replace` | `String` | `\"[REDACTED]\"` | String to replace redacted values. |\n| `keys` | `Array` | `[]` | List of keys to redact |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakdevs%2Fredakt-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdakdevs%2Fredakt-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakdevs%2Fredakt-js/lists"}