random-access-directory

1.0.2 • Public • Published

random-access-directory

Store a bunch of random-access-file instances in a common directory!

Example

var rad = require('random-access-directory')

var store = rad('/tmp/')

// create a store based on the factory
var a = store('hypercore.txt')
a.write(0, Buffer('hello'), ...)
// => /tmp/hypercore.txt

// also create a store based on a store!
var b = a('hyperdrive.txt')
b.write(0, Buffer('you'), ...)
// => /tmp/hyperdrive.txt

Installation

$ npm install random-access-directory

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    2
  • 1.0.0
    2

Package Sidebar

Install

npm i random-access-directory

Weekly Downloads

4

Version

1.0.2

License

MIT

Last publish

Collaborators

  • juliangruber