{"id":18670003,"url":"https://github.com/blahah/hyperdrive-binary-search","last_synced_at":"2025-11-06T18:30:33.373Z","repository":{"id":66275955,"uuid":"55419052","full_name":"blahah/hyperdrive-binary-search","owner":"blahah","description":"Binary search for entries in a hyperdrive archive by name","archived":false,"fork":false,"pushed_at":"2016-04-04T15:09:49.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T19:13:30.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/blahah.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-04T14:41:15.000Z","updated_at":"2016-05-15T09:05:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7886ff4-7d5c-47f6-a5dc-b606905dfe48","html_url":"https://github.com/blahah/hyperdrive-binary-search","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/blahah%2Fhyperdrive-binary-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fhyperdrive-binary-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fhyperdrive-binary-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fhyperdrive-binary-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blahah","download_url":"https://codeload.github.com/blahah/hyperdrive-binary-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239500974,"owners_count":19649367,"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-11-07T08:49:28.993Z","updated_at":"2025-11-06T18:30:33.323Z","avatar_url":"https://github.com/blahah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## hyperdrive binary search\n\nFind files by name in a [hyperdrive](https://github.com/mafintosh/hyperdrive), using binary search.\n\nThis implementation has no dependencies, and is a tiny port of the [binary-search](https://www.npmjs.com/package/binary-search) package to work with hyperdrive archives.\n\n[![Travis](https://img.shields.io/travis/blahah/hyperdrive-binary-search.svg?style=flat-square)](https://travis-ci.org/blahah/hyperdrive-binary-search)\n\n### Usage\n\n```js\nvar hypersearch = require('hyperdrive-binary-search')\n\n\nhypersearch(archive, 'myfile.txt', (err, entry) =\u003e {\n  if (err) raise err\n  console.log(entry)\n})\n```\n\nThe second argument to the callback (here called `entry`) is a hyperdrive metadata entry, e.g.:\n\n```json\n{\n  \"type\": \"file\",\n  \"name\": \"myfile.txt\",\n  \"mode\": 33188,\n  \"size\": 5028864,\n  \"uid\": 0,\n  \"gid\": 0,\n  \"mtime\": 0,\n  \"ctime\": 0\n}\n```\n\nyou can download the corresponding file from the archive, e.g:\n\n```js\nhypersearch(archive, 'myfile.txt', (err, entry) =\u003e {\n  if (err) raise err\n  var progress = archive.download(entry)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fhyperdrive-binary-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblahah%2Fhyperdrive-binary-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fhyperdrive-binary-search/lists"}