{"id":19066520,"url":"https://github.com/geut/hyperdrive-promise","last_synced_at":"2025-04-28T12:29:23.245Z","repository":{"id":48343478,"uuid":"208349383","full_name":"geut/hyperdrive-promise","owner":"geut","description":"Promise wrapper for Hyperdrive","archived":false,"fork":false,"pushed_at":"2021-08-02T13:01:00.000Z","size":184,"stargazers_count":14,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-18T16:18:10.025Z","etag":null,"topics":["async-await","dat","hyperdrive","p2p"],"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/geut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-13T21:28:26.000Z","updated_at":"2025-03-19T08:35:34.000Z","dependencies_parsed_at":"2022-08-19T06:02:06.031Z","dependency_job_id":null,"html_url":"https://github.com/geut/hyperdrive-promise","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperdrive-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperdrive-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperdrive-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperdrive-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geut","download_url":"https://codeload.github.com/geut/hyperdrive-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251313207,"owners_count":21569376,"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":["async-await","dat","hyperdrive","p2p"],"created_at":"2024-11-09T00:57:11.063Z","updated_at":"2025-04-28T12:29:23.228Z","avatar_url":"https://github.com/geut.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hyperdrive-promise\n\nAn async/await based wrapper for [hyperdrive](https://github.com/mafintosh/hyperdrive) (v10+)\n\n[![Build Status](https://travis-ci.com/geut/hyperdrive-promise.svg?branch=master)](https://travis-ci.com/geut/hyperdrive-promise) [![Greenkeeper badge](https://badges.greenkeeper.io/geut/hyperdrive-promise.svg)](https://greenkeeper.io/)\n\n## Install\n\n```\n$ npm install @geut/hyperdrive-promise\n```\n\n## Usage\n\n`hyperdrive-promise` its totally [API compatible](https://github.com/mafintosh/hyperdrive#api) with hyperdrive v10+. It's only a promise based wrapper.\n\nE.g.:\n\n```javascript\nconst hyperdrive = require('@geut/hyperdrive-promise')\nconst archive = hyperdrive('./my-first-hyperdrive') // content will be stored in this folder\n\ntry {\n  await archive.writeFile('/hello.txt', 'world')\n  const list = await archive.readdir('/')\n  console.log(list) // prints ['hello.txt']\n  const data = await archive.readFile('/hello.txt', 'utf-8')\n  console.log(data) // prints 'world'\n} catch (err) {\n  console.log(err)\n  // deal with the err\n}\n\n```\n\n## Release\n\n`npm version` \u0026\u0026 `npm publish`\n\n## Contributing\n\n:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this [guideline](https://github.com/geut/hyperdrive-promise/blob/master/CONTRIBUTING.md).\n\n\n## Sponsored By\n\n[\n\u003cimg src=\"https://github.com/libscie.png\" alt=\"Liberate Science\" width=\"200px\" /\u003e\n](https://libscie.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeut%2Fhyperdrive-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeut%2Fhyperdrive-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeut%2Fhyperdrive-promise/lists"}