{"id":18085038,"url":"https://github.com/coderofsalvation/bashdownjson","last_synced_at":"2025-04-06T00:13:58.438Z","repository":{"id":12964817,"uuid":"15643244","full_name":"coderofsalvation/bashdownjson","owner":"coderofsalvation","description":"portable/easy way of generating of json feeds using commandline (piping) using 100% bash and bashdown templates","archived":false,"fork":false,"pushed_at":"2020-05-28T18:17:26.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:22:59.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2014-01-05T01:17:05.000Z","updated_at":"2020-05-28T18:17:28.000Z","dependencies_parsed_at":"2022-09-18T23:11:55.938Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/bashdownjson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fbashdownjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fbashdownjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fbashdownjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fbashdownjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/bashdownjson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415976,"owners_count":20935387,"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":"2024-10-31T15:09:10.101Z","updated_at":"2025-04-06T00:13:58.411Z","avatar_url":"https://github.com/coderofsalvation.png","language":"Shell","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"bashdownjson\n===========\n\nportable/easy way of generating of jsonfeeds using commandline (piping) using 100% bash and bashdown templates\n\nUsage\n=====\n\n    $ ./bashdownjson \n    \n      Usage: \n\n        add:        echo 'foo bar'       | bashdownjson add your.json\n                    echo '{\"foo\":\"bar\"}' | bashdownjson add your.json\n\n        reset:      bashdownjson reset your.json\n        print:      bashdownjson generate your.json [maxitems]\n\nOne doesnt have to be an Einstein to figure this makes it perfect for crontab, fifo/pipe's and *any* kind of applications..since its all bash :)\n\nExample\n=======\n\nput this into your crontab to generate the feed hourly (feel free to modify) with always the latest 10 items:\n    \n    @hourly /path/to/bashdownjson print errors.json 10 \u003e /var/www/foo/errors.json\n\nnow with tail(f) you can easily monitor some (log)files etc:\n\n    tailf /some/application/log.txt | grep \"ERROR\" | ./bashdownjson add errors.json\n\nExample output\n==============\n\nThe 'add' command in the Usage-example above, would eventually generate this output when './bashdownjson print your.json' would be called:\n\n    {    \n      \"system\": \"Linux lemon 2.6.32-042stab076.5 #1 SMP Mon Mar 18 20:41:34 MSK 2013 x86_64 GNU/Linux\",\n      \"date\": \"Sun, 05 Jan 2014 16:56:49 +0100\",\n      \"items\": [\n        {\n          \"id\"  : \"1388937285\",\n          \"date\": \"Sun, 05 Jan 2014 16:54:45 +0100\",\n          \"data\": {\"text\":\"foo bar\"}\n        }\n        ,\n        {\n          \"id\"  : \"1388937305\",\n          \"date\": \"Sun, 05 Jan 2014 16:55:05 +0100\",\n          \"data\": {\"flop\":\"flap\"}\n        }\n      ]\n    }\n\n\nThis is just a simple example but you'll get the point I guess :)\n\nRequirements\n============\n\n* written in +/- 50 lines of bash, the ultimate swiss army knife \n\nCredits\n=======\n\n* [bash(down) template 'engine'](https://github.com/coderofsalvation/bashdown)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fbashdownjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fbashdownjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fbashdownjson/lists"}