{"id":17028471,"url":"https://github.com/bennycode/selecthor","last_synced_at":"2026-02-11T10:01:29.353Z","repository":{"id":65493806,"uuid":"206075134","full_name":"bennycode/selecthor","owner":"bennycode","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-11T01:14:28.000Z","size":313,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T02:50:45.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/selecthor","language":"TypeScript","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/bennycode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-09-03T12:45:21.000Z","updated_at":"2019-09-04T09:24:50.000Z","dependencies_parsed_at":"2024-12-19T07:15:40.204Z","dependency_job_id":null,"html_url":"https://github.com/bennycode/selecthor","commit_stats":null,"previous_names":["bennyn/selecthor"],"tags_count":1,"template":false,"template_full_name":"bennycode/ts-node-starter","purl":"pkg:github/bennycode/selecthor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennycode%2Fselecthor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennycode%2Fselecthor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennycode%2Fselecthor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennycode%2Fselecthor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennycode","download_url":"https://codeload.github.com/bennycode/selecthor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennycode%2Fselecthor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29331592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-14T07:54:38.714Z","updated_at":"2026-02-11T10:01:29.073Z","avatar_url":"https://github.com/bennycode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SelecTHOR ⚡⚒️\r\n\r\n\u003e Choose your data the way Thor's hammer chose Thor.\r\n\r\nSelect JSON data with a query language inspired by SQL.\r\n\r\n## ❯ Features\r\n\r\n- **Easy-to-use.** Selecthor's API is dead simple, [easy to use](#-usage) and easy to replace (if you ever want to).\r\n- **Typed.** Selecthor is written [100% in TypeScript](./src/index.ts), so there is no need to install typings from an external source.\r\n- **Tested.** Don't be surprised when using Selecthor, it ships with [100% code coverage](./src/index.test.ts).\r\n- **Documented.** Modern documentation lives in code. That's why [Selecthor](./src/index.ts) contains TSDoc comments where needed.\r\n- **Compatible.** Node.js, Browsers? [Run Selecthor](https://runkit.com/npm/selecthor) on the platform of your choice!\r\n- **Independent.** Don't be afraid of big lock files. Selecthor uses [zero dependencies](https://www.npmjs.com/package/selecthor?activeTab=dependencies).\r\n\r\n## ❯ Installation\r\n\r\n```bash\r\nnpm install selecthor\r\n```\r\n\r\n```bash\r\nyarn add selecthor\r\n```\r\n\r\n## ❯ Usage\r\n\r\n```javascript\r\nconst { selecthor } = require(\"selecthor\");\r\n\r\nconst data = {\r\n  animals: [\r\n    {\r\n      legs: 2,\r\n      name: \"Chimp\",\r\n      speed: {\r\n        kph: 45,\r\n        mph: 27.96\r\n      }\r\n    },\r\n    {\r\n      legs: 4,\r\n      name: \"Greyhound\",\r\n      speed: {\r\n        kph: 72.42,\r\n        mph: 45\r\n      }\r\n    },\r\n    {\r\n      legs: 4,\r\n      name: \"Polar Bear\",\r\n      speed: {\r\n        kph: 40,\r\n        mph: 24.85\r\n      }\r\n    }\r\n  ]\r\n};\r\n\r\nconst query = \"SELECT name FROM animals WHERE speed.kph \u003c 70\";\r\nconst selection = selecthor(data, query);\r\n\r\nconsole.log(JSON.stringify(selection)); // [{\"name\":\"Chimp\"},{\"name\":\"Polar Bear\"}]\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennycode%2Fselecthor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennycode%2Fselecthor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennycode%2Fselecthor/lists"}