Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
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](https://npmjs.org/package/random-access-file) instances in a common directory!

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
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

FAQs

Package last updated on 05 Mar 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