Socket
Book a DemoInstallSign in
Socket

random-access-directory

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-access-directory

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

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 11 Apr 2017

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