Socket
Socket
Sign inDemoInstall

@geut/hyperdrive-promise

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geut/hyperdrive-promise

An async/await based wrapper for hyperdrive (v10+)


Version published
Weekly downloads
23
increased by35.29%
Maintainers
5
Weekly downloads
 
Created
Source

hyperdrive-promise

An async/await based wrapper for hyperdrive (v10+)

Build Status Greenkeeper badge

Install

$ npm install @geut/hyperdrive-promise

Usage

hyperdrive-promise its totally API compatible with hyperdrive v10+. It's only a promise based wrapper.

E.g.:

const hyperdrive = require('@geut/hyperdrive-promise')
const archive = hyperdrive('./my-first-hyperdrive') // content will be stored in this folder

try {
  await archive.writeFile('/hello.txt', 'world')
  const list = await archive.readdir('/')
  console.log(list) // prints ['hello.txt']
  const data = await archive.readFile('/hello.txt', 'utf-8')
  console.log(data) // prints 'world'
} catch (err) {
  console.log(err)
  // deal with the err
}

Release

npm version && npm publish

Contributing

:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this guideline.

Sponsored By

Liberate Science

Keywords

FAQs

Package last updated on 02 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc