Nourished Personal Mucus
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    continuous-storagepublic

    continuous-storage experimental

    Store a continuous ndarray in a level database - using either levelup with Node or level.js in the browser.

    Example incoming in the topdown-physics demo.

    Installation

    npm install continuous-storage

    Usage

    store = storage(db, field[, options])

    Creates a store instance for your database and continuous array:

    • db is a level database.
    • field is the continuous ndarray you want to store.

    With the following options:

    • options.index is a function which maps a position array to a string key for each chunk in the database. Defaults to position.join(':').

    store.saveall()

    Saves all of the currently instantiated chunks to the database.

    store.save(chunk)

    Saves a chunk to the database.

    Keywords

    none

    install

    npm i continuous-storage

    Downloadsweekly downloads

    2

    version

    0.1.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar