UNPKG

@web4/bitdrive

Version:

Bitdrive is a secure, real time distributed file system

11 lines (9 loc) 260 B
var ram = require('random-access-memory') var Bitdrive = require('../../') module.exports = function (key, opts) { if (key && !(key instanceof Buffer)) { opts = key key = null } return new Bitdrive((opts && opts.chainstore) || ram, key, opts) }