{"id":16064374,"url":"https://github.com/nitzano/datazar","last_synced_at":"2025-10-22T12:31:20.345Z","repository":{"id":259176833,"uuid":"864873550","full_name":"nitzano/datazar-cli","owner":"nitzano","description":"CLI Database \u0026 File Anonymizer","archived":false,"fork":false,"pushed_at":"2024-10-22T15:29:13.000Z","size":480,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T04:37:24.923Z","etag":null,"topics":["anonymizer","cli","data","fake"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitzano.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-29T11:55:28.000Z","updated_at":"2024-11-28T16:55:15.000Z","dependencies_parsed_at":"2024-10-23T08:53:43.642Z","dependency_job_id":"e0fd0c8a-78d4-4042-870a-bc7a76a73596","html_url":"https://github.com/nitzano/datazar-cli","commit_stats":null,"previous_names":["nitzano/datazar","nitzano/databye"],"tags_count":184,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitzano%2Fdatazar-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitzano%2Fdatazar-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitzano%2Fdatazar-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitzano%2Fdatazar-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitzano","download_url":"https://codeload.github.com/nitzano/datazar-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237689186,"owners_count":19350906,"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":["anonymizer","cli","data","fake"],"created_at":"2024-10-09T05:06:34.806Z","updated_at":"2025-10-22T12:31:19.751Z","avatar_url":"https://github.com/nitzano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003ch1 align=\"center\"\u003eDataZar 📊👋\u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eCLI Database \u0026 File Anonymizer\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![npm](https://img.shields.io/npm/v/datazar-cli)](https://www.npmjs.com/package/datazar-cli)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n[![GitHub Repo stars](https://img.shields.io/github/stars/nitzano/datazar?style=flat)](https://github.com/nitzano/datazar/stargazers)\n![GitHub License](https://img.shields.io/github/license/nitzano/datazar)\n![npm](https://img.shields.io/npm/dw/datazar-cli)\n\n\u003c/div\u003e\n\nA command-line tool to anonymize and transform sensitive data in databases, files, and datasets without writing a single line of code. Supports various databases types and file formats. \n\n- [Usage](#usage)\n- [Examples](#examples)\n  - [PostgresSQL](#postgressql)\n  - [MongoDB](#mongodb)\n  - [SQLite](#sqlite)\n  - [CSV](#csv)\n- [Anonymizers](#anonymizers)\n- [Support](#support)\n  - [Databases](#databases)\n  - [Files](#files)\n- [CLI](#cli)\n  - [anon-col](#anon-col)\n- [License](#license)\n\n\n# Usage\n\n\n```\n# npm\nnpx datazar-cli \u003ccommand\u003e [options]\n\n# pnpm\npnpm dlx datazar-cli \u003ccommand\u003e [options]\n\n# yarn\nyarn dlx datazar-cli \u003ccommand\u003e [options]\n```\n\n# Examples\n\n## PostgresSQL\n\nMask `firstName` column in `users` table in `test` db:\n```\nnpx datazar-cli anon-col postgres \\ \n  --uri postgresql:/localhost \\\n  --database test \\\n  --table users \\\n  --column firstName \\\n  mask\n\n// { \"firstName\": \"John\" } =\u003e { \"firstName\": \"****\" }\n```\n\n## MongoDB\n\nScramble `lastName` column in `users` table in `test` db:\n```\nnpx datazar-cli anon-col mongo \n  --uri mongodb://localhost \\\n  --database test \\ \n  --table users \\ \n  --column lastName \\\n  scramble\n\n// { \"lastName\": \"Smith\" } =\u003e { \"lastName\": \"hSmti\" }\n```\n\n## SQLite\n\nMask `firstName` column in `users` table in `dev.db`:\n```\nnpx datazar-cli anon-col sqlite \\\n   --uri /home/dev.db \\\n   --table users \\\n   --column firstName \\\n    mask\n```\n\n## CSV\n\nFake `email` column in `file.csv` with a fake one:\n```\nnpx datazar-cli anon-col csv \\ \n  --file /home/file.csv \\ \n  --column email \\ \n  fake email\n```\n\n# Anonymizers\n\n1. 🎭 **Mask** - Masks some or all of the letters of the previous value.\n2. 🔀 **Scramble** - Scrambles the order of characters inside a string randomly.\n1. 🍀 **Fake** - Generate fake data instead of the previous value\n\nComing Soon:\n\n1. 🧽 **Remove**  - removes the entire data\n2. 🖋️ **Constant** – Substitutes sensitive words or phrases with placeholders or predefined values.\n3. 🔐 **Hash** – Replaces the value with a cryptographic hash, making it irrecoverable.\n4. 👓 **Blur** – Adds random variation to numerical values while keeping them within a reasonable range.\n\n# Support\n\n## Databases\n\n1. MongoDB \n2. PostgresSQL\n3. MariaDB\n4. MySQL\n5. MSSQL\n6. SQLite\n7. Neo4J (Coming Soon)\n8. DynamoDB (Coming Soon)\n9. Redis (Coming Soon)\n10. CouchDB (Coming Soon)\n\n## Files \n\n1. CSV \n2. JSON (Coming Soon)\n3. XML (Coming Soon)\n4. XSLX (Coming Soon)\n5. Parquet (Coming Soon)\n6. YAML (Coming Soon)\n\n\n\n# CLI\n\n## anon-col \n\nAnonymize a single column in a table\n\n```\nUsage: anon-col \u003cengine\u003e [engine_options] \u003canonymizer\u003e [anonymizer_options]\n```\n\n# License\n\nDataZar\nCopyright (C) 2024 Nitzan Ohana\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitzano%2Fdatazar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitzano%2Fdatazar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitzano%2Fdatazar/lists"}