{"id":13395194,"url":"https://github.com/soheilpro/catj","last_synced_at":"2025-03-13T20:31:58.089Z","repository":{"id":24390225,"uuid":"27790197","full_name":"soheilpro/catj","owner":"soheilpro","description":"Displays JSON files in a flat format.","archived":false,"fork":false,"pushed_at":"2020-11-14T18:33:44.000Z","size":11,"stargazers_count":1325,"open_issues_count":5,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-09-24T18:47:35.904Z","etag":null,"topics":["cat","cli","json"],"latest_commit_sha":null,"homepage":"","language":null,"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/soheilpro.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}},"created_at":"2014-12-09T22:21:31.000Z","updated_at":"2024-09-13T18:50:54.000Z","dependencies_parsed_at":"2022-09-16T05:21:27.272Z","dependency_job_id":null,"html_url":"https://github.com/soheilpro/catj","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheilpro%2Fcatj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheilpro%2Fcatj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheilpro%2Fcatj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soheilpro%2Fcatj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soheilpro","download_url":"https://codeload.github.com/soheilpro/catj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242756857,"owners_count":20180206,"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":["cat","cli","json"],"created_at":"2024-07-30T17:01:45.790Z","updated_at":"2025-03-13T20:31:57.476Z","avatar_url":"https://github.com/soheilpro.png","language":null,"readme":"# catj\nDisplays JSON files in a flat format.\n\nInput:\n\n``` json\n{\n  \"mappings\": {\n    \"templates\": [\n      {\n        \"fields\": {\n          \"mapping\": {\n            \"norms\": false,\n            \"type\": \"text\",\n            \"fields\": {\n              \"keyword\": {\n                \"ignore_above\": 256,\n                \"type\": \"keyword\"\n              }\n            }\n          }\n        }\n      }\n    ]\n  }\n}\n```\n\nOutput:\n\n``` bash\n.mappings.templates[0].fields.mapping.norms = false\n.mappings.templates[0].fields.mapping.type = \"text\"\n.mappings.templates[0].fields.mapping.fields.keyword.ignore_above = 256\n.mappings.templates[0].fields.mapping.fields.keyword.type = \"keyword\"\n```\n\n## Why?\n\n- It makes it easier to understand the structure of JSON files.\n- The output is valid JavaScript which can be used directly in code.\n- It's very helpful when writing queries for tools like [jq](https://stedolan.github.io/jq/manual/).\n\n## Install\n\n``` bash\nnpm install -g catj\n```\n\n## Usage\n\n``` bash\ncatj [file]\n```\n\nIf no file is specified, catj reads from the standard input.\n\n## Version History\n+ **1.0**\n\t+ Initial release.\n\n## Author\n**Soheil Rashidi**\n\n+ http://soheilrashidi.com\n+ http://twitter.com/soheilpro\n+ http://github.com/soheilpro\n\n## Copyright and License\nCopyright 2014 Soheil Rashidi\n\nLicensed under the The MIT License (the \"License\");\nyou may not use this work except in compliance with the License.\nYou may obtain a copy of the License in the LICENSE file, or at:\n\nhttp://www.opensource.org/licenses/mit-license.php\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":["Others","Others (28)","Tools"],"sub_categories":["Node"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoheilpro%2Fcatj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoheilpro%2Fcatj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoheilpro%2Fcatj/lists"}