{"id":15062857,"url":"https://github.com/drashland/accio","last_synced_at":"2026-01-19T21:33:23.104Z","repository":{"id":57109673,"uuid":"404919380","full_name":"drashland/accio","owner":"drashland","description":"An easy way to search for deeply nested data in large datasets. Works in Node, Deno, and the browser.","archived":false,"fork":false,"pushed_at":"2022-12-25T05:39:27.000Z","size":129,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-08T12:14:07.548Z","etag":null,"topics":["browser","deno","javascript","node","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drashland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-10T01:27:32.000Z","updated_at":"2023-02-04T13:20:57.000Z","dependencies_parsed_at":"2023-01-30T21:45:45.249Z","dependency_job_id":null,"html_url":"https://github.com/drashland/accio","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/drashland/accio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drashland%2Faccio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drashland%2Faccio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drashland%2Faccio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drashland%2Faccio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drashland","download_url":"https://codeload.github.com/drashland/accio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drashland%2Faccio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28585515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"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":["browser","deno","javascript","node","typescript"],"created_at":"2024-09-24T23:47:32.764Z","updated_at":"2026-01-19T21:33:23.080Z","avatar_url":"https://github.com/drashland.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accio\n\nAn easy way to search for deeply nested data in large datasets\n\n## Quickstart\n\nThe below quickstart uses Node and TypeScript. If this quickstart does not fit\nyour needs, check out the other guides below:\n\n- [Quickstart: Browser - JavaScript](./docs/quickstart/browser_javascript.md)\n- [Quickstart: Node - JavaScript](./docs/quickstart/node_javascript.md)\n- [Quickstart: Deno - JavaScript](./docs/quickstart/deno_javascript.md)\n- [Quickstart: Deno - TypeScript](./docs/quickstart/deno_typescript.md)\n\n### Quickstart: Node - TypeScript\n\n1. Initialize your project as a Node project.\n\n   ```\n   $ npm init -y\n   ```\n\n   _Note: `-y` skips all of the prompts._\n\n2. Install Accio and the `ts-node` CLI.\n\n   ```\n   $ npm install @drashland/accio\n   $ npm install -g ts-node\n   ```\n\n3. Create your `data.json` file. You can copy the\n   [`example_data.json`](./example_data.json) file from this repository.\n\n4. Create your `app.ts` file.\n\n   ```typescript\n   import { accio } from \"@drashland/accio\";\n   import { readFileSync } from \"fs\";\n\n   const data = readFileSync(\"./data.json\", \"utf-8\");\n\n   const result = accio(data)\n     .array(\"versions\") // Target the array named \"versions\"\n     .findOne({ // In the array, find one object that has a name field ...\n       name: \"v0.0.3\", // ... with the value of \"v0.0.3\"\n     })\n     .array(\"release_notes\") // In the object, target the array named \"release_notes\"\n     .findOne({ // In the array, find one object that has a title field ...\n       title: \"Bug Fixes\", // ... with the value of \"Bug Fixes\"\n     })\n     .array(\"body\") // In the object, target the array named \"body\"\n     .first(); // Target the first object in the array\n\n   // Create the typing for the result\n   type SomeType = {\n     type: string;\n     text: string;\n   };\n\n   // Use the `.get()` call and pass in the typing to get a typed result\n   const typedResult = result.get\u003cSomeType\u003e();\n\n   console.log(typedResult.type);\n   console.log(typedResult.text);\n   ```\n\n5. Run your `app.ts` file.\n\n   ```\n   $ ts-node app.ts\n   ```\n\n   You should see the following:\n\n   ```\n   bullet\n   Fix issue with date objects not being correctly validated.\n   ```\n\n## Tutorials\n\n- [Searching](./docs/tutorials/searching.md)\n- [Traversing](./docs/tutorials/traversing.md)\n\n## API\n\nView the full API documentation [here](./docs/api_reference.md).\n\n---\n\nWant to contribute? Follow the Contributing Guidelines\n[here](https://github.com/drashland/.github/blob/master/CONTRIBUTING.md). All\ncode is released under the\n[MIT License](https://github.com/drashland/deno-drash/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrashland%2Faccio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrashland%2Faccio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrashland%2Faccio/lists"}