{"id":24830036,"url":"https://github.com/vacovsky/shinroller","last_synced_at":"2025-07-22T01:34:31.334Z","repository":{"id":98864975,"uuid":"95273834","full_name":"vacovsky/shinroller","owner":"vacovsky","description":"A cross-platform tool for extracting web.config key/value pairs into JSON format, and generating tokenized versions of web.confg and other XML-based configuration files (DotNet)","archived":false,"fork":false,"pushed_at":"2017-07-11T17:29:53.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T02:43:07.488Z","etag":null,"topics":["command-line-tool","dotnet","dotnet-core","golang","json","tokenization","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vacovsky.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":"2017-06-24T03:41:15.000Z","updated_at":"2017-06-24T23:48:32.000Z","dependencies_parsed_at":"2023-07-21T04:17:04.903Z","dependency_job_id":null,"html_url":"https://github.com/vacovsky/shinroller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vacovsky/shinroller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Fshinroller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Fshinroller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Fshinroller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Fshinroller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vacovsky","download_url":"https://codeload.github.com/vacovsky/shinroller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Fshinroller/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266409640,"owners_count":23924287,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["command-line-tool","dotnet","dotnet-core","golang","json","tokenization","utility"],"created_at":"2025-01-30T23:48:40.431Z","updated_at":"2025-07-22T01:34:31.323Z","avatar_url":"https://github.com/vacovsky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shinroller - a tokenization tool for web.config files\n\nA tool for extracting, tokenizing, and sorting key/value pairs from DotNet (web.config) configuration files.\n\nThis tools is intended to be used alongside https://github.com/vacoj/fasturtle.  They perform comlimentary tasks, but keeping them separate seemed the best idea.\n\n\u003ca href=\"https://github.com/vacoj/fasturtle\"\u003eFasturtle\u003c/a\u003e uses the products (tokenized configs and json values files) of shinroller to detokenize.  I have used this app combination successfully for these tasks.\n\n## Installation\n\n```bash\ngo get -u github.com/vacoj/shinroller\ngo get -u github.com/vacoj/fasturtle # recommended partner app\n```\n\n## Usage\n\n### A bash script and usage explained (uncommented bash script is TestingData/roll-shins.sh)\n\n```bash\n#!/bin/bash\nfor f in inputs/* ; do\n    ./shinroller \\\n\n    # file which you want to be tokenized.\n    --input=\"$f\" \\\n\n    # where we want the json (unconverged) token file to be placed\n    --output-path=\"tokens/$(basename $f).json\" \\\n\n    # where we want the tokenized versions of the input to be placed.\n    # Don't make this the same directry as your input or it will be overwritten\n    --tokenized-output-path=\"tokenized_files/$(basename $f)\" \\\n\n    # extractes \"something\" because \"key\" is a valid prefix \u003cadd key=\"something\" value=\"myvalue\"\u003e\n    --key-names=\"name,key\" \\\n\n    # extractes \"blahblahblah\" because \"value\" is a valid prefix \u003cadd key=\"something\" value=\"blahblahblah\"\u003e\n    --value-names=\"hostAddress,connectionString,value\" \\\n\n    # skips over \u003cadd key=\"something\" value=\"Microsoft.Something.etc\"\u003e\n    --exclude=\"Microsoft.,System.\" \\\n\n    # chars to use as buffers around the tokens\n    --buffer-left=\"{{\" \\\n    --buffer-right=\"}}\"\ndone\n\n# this will converge and sort all token files, so that any files which\n# share key-values have that value moved to an \"environment.json\" file,\n# and any unique key/value pairs stay in the json for the original input\n# token file.\nshinroller \\\n    # location of json token files from previous loop\n    --converge=\"tokens/\" \\\n\n    # location where you want to place the converged tokens.  This is\n    # essentially the final product.\n    --output-path=\"converged_tokens/\"\n\n```\n\n### Folder Structure\n\n```text\nTestingData\n├── converged_tokens\n│   ├── environment.json\n│   ├── input1.xml.json\n│   └── input2.xml.json\n├── inputs\n│   ├── input1.xml    \u003c---- the only original files\n│   └── input2.xml    \u003c---- the only original files\n├── roll-shins.sh\n├── tokenized_files\n│   ├── input1.xml\n│   └── input2.xml\n└── tokens\n    ├── input1.xml.json\n    └── input2.xml.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvacovsky%2Fshinroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvacovsky%2Fshinroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvacovsky%2Fshinroller/lists"}