{"id":17435361,"url":"https://github.com/takatoshiono/csvmask","last_synced_at":"2025-03-28T01:20:27.679Z","repository":{"id":57569173,"uuid":"203586120","full_name":"takatoshiono/csvmask","owner":"takatoshiono","description":"csvmask is a CSV masking tool","archived":false,"fork":false,"pushed_at":"2019-09-26T13:55:32.000Z","size":45,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T02:48:39.331Z","etag":null,"topics":["csv","go","mask","masking"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/takatoshiono/csvmask","language":"Go","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/takatoshiono.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-08-21T13:06:10.000Z","updated_at":"2021-09-07T11:14:19.000Z","dependencies_parsed_at":"2022-08-23T18:11:00.893Z","dependency_job_id":null,"html_url":"https://github.com/takatoshiono/csvmask","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takatoshiono%2Fcsvmask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takatoshiono%2Fcsvmask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takatoshiono%2Fcsvmask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takatoshiono%2Fcsvmask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takatoshiono","download_url":"https://codeload.github.com/takatoshiono/csvmask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245950244,"owners_count":20699037,"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":["csv","go","mask","masking"],"created_at":"2024-10-17T09:45:03.197Z","updated_at":"2025-03-28T01:20:27.654Z","avatar_url":"https://github.com/takatoshiono.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csvmask [![CircleCI](https://circleci.com/gh/takatoshiono/csvmask.svg?style=svg)](https://circleci.com/gh/takatoshiono/csvmask) [![codecov](https://codecov.io/gh/takatoshiono/csvmask/branch/master/graph/badge.svg)](https://codecov.io/gh/takatoshiono/csvmask)\ncsvmask is a CSV masking tool.\n\n## Usage\n\n1. Prepare CSV encoded data\n\n```\n$ cat testdata/test.csv\n\"ID\",\"Name\",\"Address\"\n4085ff59-39bd-4cc3-8a55-c5b1c6785922,Adam Smith,Kirkcaldy United Kingdom\n```\n\n2. Create template\n\n```\n{{.Field1}},{{hash .Field2}},{{.Field3}}\n```\n\n3. Execute csvmask with template\n\n```\n$ cat testdata/test.csv | csvmask -template \"{{.Field1}},{{hash .Field2}},{{.Field3}}\" -skipheader\nID,Name,Address\n4085ff59-39bd-4cc3-8a55-c5b1c6785922,PbZ8hc4alo56RYc9/m+vECyVdjHqZRGMlxUGigh3/uE,Kirkcaldy United Kingdom\n```\n\n## Template\n\nThe template is a text of text/template package of Go.\n\n### Arguments\n\nThe fields of CSV record can be referred as arguments. The name is preceeded by a period such as\n\n- .Field1\n- .Field2\n- .Field3\n- ...\n\n### Functions\n\nThe following functions are defined.\n\n- hash\n- checksum\n- right\n- left\n\n## Installation\n\n### Just get binaries\n\nGo to the [releases page](https://github.com/takatoshiono/csvmask/releases) and download zip file.\n\n### go get\n\n```\n$ go get -u github.com/takatoshiono/csvmask\n```\n\n### Build yourself\n\nFirst clone the repository and\n\n```\n$ make install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakatoshiono%2Fcsvmask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakatoshiono%2Fcsvmask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakatoshiono%2Fcsvmask/lists"}