{"id":13516145,"url":"https://github.com/jsqry/jsqry","last_synced_at":"2025-03-31T05:31:19.595Z","repository":{"id":9290191,"uuid":"57248742","full_name":"jsqry/jsqry","owner":"jsqry","description":"Simple JS lib to query js objects/arrays","archived":false,"fork":false,"pushed_at":"2023-03-04T23:49:05.000Z","size":305,"stargazers_count":47,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T19:15:56.187Z","etag":null,"topics":["filter","json","json-query","query","transform"],"latest_commit_sha":null,"homepage":"https://jsqry.github.io","language":"JavaScript","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/jsqry.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}},"created_at":"2016-04-27T21:15:03.000Z","updated_at":"2025-02-08T20:13:40.000Z","dependencies_parsed_at":"2024-01-13T19:25:54.481Z","dependency_job_id":"f9d28466-437d-42e2-bb3d-3df66d3cd047","html_url":"https://github.com/jsqry/jsqry","commit_stats":{"total_commits":147,"total_committers":3,"mean_commits":49.0,"dds":"0.020408163265306145","last_synced_commit":"4e4ef176c30bbc38e62533927fa192ff2c51421f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsqry%2Fjsqry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsqry%2Fjsqry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsqry%2Fjsqry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsqry%2Fjsqry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsqry","download_url":"https://codeload.github.com/jsqry/jsqry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423527,"owners_count":20774795,"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":["filter","json","json-query","query","transform"],"created_at":"2024-08-01T05:01:19.515Z","updated_at":"2025-03-31T05:31:18.779Z","avatar_url":"https://github.com/jsqry.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)\n\n# jsqry\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/xonixx/jsqry/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/jsqry.svg)](https://www.npmjs.com/package/jsqry)\n[![Coverage Status](https://coveralls.io/repos/github/jsqry/jsqry/badge.svg?branch=master)](https://coveralls.io/github/jsqry/jsqry?branch=master)\n\nSimple lib to query JS objects/arrays.\n\nThis tiny lib allows to query JS object/arrays in one-liner fashion instead of writing tedious loops (possibly nested).\n\nBefore:\n\n```javascript\nvar name;\nfor (var i = 0; i \u003c users.length; i++) {\n    if (users[i].id == 123) {\n        name = users[i].name;\n        break;\n    }\n}\n```\n\nAfter:\n\n```javascript\nvar name = first(users, '[_.id==?].name', 123);\n```\n\nFeatures include:\n\n* Filtering\n* Mapping\n* Python-style array indexing \u0026 slicing\n* [lot more!](https://jsqry.github.io/)\n\n## Documentation\n\nFor docs and examples please visit [jsqry.github.io](https://jsqry.github.io/).\n\n## Install\n\n#### Nodejs\n```bash\nnpm install jsqry\n```\n\nor\n\n```bash\nyarn add jsqry\n```\n\n#### Web\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jsqry@1.2.4/jsqry.min.js\"\u003e\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsqry%2Fjsqry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsqry%2Fjsqry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsqry%2Fjsqry/lists"}