Skip to content

random-access-storage/random-access-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published