@ddatabase/default-storage

1.0.1 • Public • Published

@ddatabase/default-storage

Default storage provider used by dDatabase

npm install @ddatabase/default-storage

Usage

const defaultStorage = require('@ddatabase/default-storage')

const feed = ddatabase(name => defaultStorage(name, { directory: 'feed' }))

API

storage = defaultStorage(name, [options])

Makes a new random-access-storage provider using the random-access-file module.

If making a bitfield file that file will be locked to avoid parallel writers.

License

MIT

/@ddatabase/default-storage/

    Package Sidebar

    Install

    npm i @ddatabase/default-storage

    Homepage

    dwebx.org

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.57 kB

    Total Files

    4

    Last publish

    Collaborators

    • dwebprotocol