{"id":26611519,"url":"https://github.com/ioncache/data-sanitization","last_synced_at":"2025-03-24T02:49:09.764Z","repository":{"id":54481547,"uuid":"522422369","full_name":"ioncache/data-sanitization","owner":"ioncache","description":"Sanitization library for obfuscating/removing/securing data.","archived":false,"fork":false,"pushed_at":"2024-01-15T14:32:54.000Z","size":500,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-15T18:50:08.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ioncache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-08-08T05:53:47.000Z","updated_at":"2022-08-08T05:55:00.000Z","dependencies_parsed_at":"2023-02-16T06:30:54.702Z","dependency_job_id":"8a5b5b02-3e00-4424-947e-e7404c795c89","html_url":"https://github.com/ioncache/data-sanitization","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncache%2Fdata-sanitization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncache%2Fdata-sanitization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncache%2Fdata-sanitization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioncache%2Fdata-sanitization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ioncache","download_url":"https://codeload.github.com/ioncache/data-sanitization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200683,"owners_count":20576673,"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","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-24T02:49:09.228Z","updated_at":"2025-03-24T02:49:09.759Z","avatar_url":"https://github.com/ioncache.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# data-sanitization\n\n## Overview\n\nThis package takes a pattern based approach to matching field names in data and then replacing the associated fields by either masking the field value or removing the field.\n\nObjects are first converted to strings via `JSON.stringify`. This is done to have a consistent interface for text and non-text data.\n\nNOTE: Since `JSON.stringify` might not be performant on large data sets, or when being run repeatedly, `v2` might take a different approach for non-string data.\n\nAfter the pattern replacement, the new string is either returned or is converted back into an object via `JSON.parse` and then returned.\n\nIn any case where the data cannot be parsed, an error object is thrown.\n\n## Table of Contents\n\n- [data-sanitization](#data-sanitization)\n  - [Overview](#overview)\n  - [Table of Contents](#table-of-contents)\n  - [Documentation](#documentation)\n  - [TODO: Version 2](#todo-version-2)\n\n## Documentation\n\nTODO\n\n## TODO: Version 2\n\nPossibly take a different approach to data parsing for version 2.\n\n- take an approach where instead of first converting all data to strings with `JSON.stringify`, instead attempt to convert all data to objects if it isn't already\n- use `cloneDeepWith` from `lodash` to copy the object and modify/remove strings within the data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioncache%2Fdata-sanitization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fioncache%2Fdata-sanitization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioncache%2Fdata-sanitization/lists"}