{"id":22100139,"url":"https://github.com/olorin37/sane-jq","last_synced_at":"2025-03-24T01:46:38.737Z","repository":{"id":124643310,"uuid":"241996438","full_name":"olorin37/sane-jq","owner":"olorin37","description":"JQ prelude / standard library with more sane behaviour.","archived":false,"fork":false,"pushed_at":"2023-11-15T08:59:36.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T08:48:40.996Z","etag":null,"topics":["command-line-tool","jq","json"],"latest_commit_sha":null,"homepage":"","language":"jq","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/olorin37.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":"2020-02-20T21:43:36.000Z","updated_at":"2023-11-15T08:59:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbad2bfa-b335-442f-b26d-a3cb26e42f18","html_url":"https://github.com/olorin37/sane-jq","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/olorin37%2Fsane-jq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olorin37%2Fsane-jq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olorin37%2Fsane-jq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olorin37%2Fsane-jq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olorin37","download_url":"https://codeload.github.com/olorin37/sane-jq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245195916,"owners_count":20575936,"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":["command-line-tool","jq","json"],"created_at":"2024-12-01T05:12:17.446Z","updated_at":"2025-03-24T01:46:38.712Z","avatar_url":"https://github.com/olorin37.png","language":"jq","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sane jq prelude library\nJQ prelude library. It implements only functions for which their buildin alternative behaves badly.\n\n# Usage\n\nJust put `prelude.jq` file in `~/.jq` at your users home (the user which runs `jq`). And in your\n`jq` code just include or import the file.\n\n```\nimport \"prelude\" as Prelude;\n\nPrelude::lt(7, 10)  # =\u003e true\nPrelude::gt(\"7\", 7) # =\u003e yields error (while standard jq \"7\" \u003e 7 would return true, sic!)\n\n# or just \n\ninclude \"prelude\";\n\nlt(7, 10)     # =\u003e true\ngt(\"a\", \"b\")  # =\u003e false\n```\n\n# Reason\n\n`jq` is a wonderful tool for JSON manipulation from Shell scripts, but some of standard functions\nor operators behave in a little irrational way.\n\n _to be continued_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folorin37%2Fsane-jq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folorin37%2Fsane-jq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folorin37%2Fsane-jq/lists"}