Store your Dat archive's secret key in the macOS keychain.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
example.js
index.js
package.json
readme.md

readme.md

dat-keychain-storage

Store your Dat archive's secret key in the macOS keychain.

This is an extremely simple module wrapping dat-storage, which does all the heavy lifting of storing files in the right places.

Install

npm install dat-keychain-storage

Usage

You can use this anywhere that Dat or Hyperdrive expects a "storage".

const hyperdrive = require('hyperdrive')
const storage = require('dat-keychain-storage')
const archive = hyperdrive(storage('example-archive'), {latest: true})

Check out example.js for a very basic example.