Skip to content

Make it pluggable to lowdb #30

@aegyed91

Description

@aegyed91

Hello, first of all i have to say this is an awesome library.

I've tried to augment lowdb with this mixin lib. Unfortunately without success.

import low from 'lowdb'
const db = low('db')

// `underscore-query` doesn't expose an object of mixins
db._.mixin({
  second: function(array) {
    return array[1]
  }
})

I usually use native js methods for data manipulation but it seems i'll have to create my first SPA application soon and these two libraries would play awesome together so i can easiely manipulate state and persist it to localstorage or even indexed db with a custom lowdb storage adapter.

I short quote from lowdb's readme:

Database lodash instance. Use it to add your own utility functions or third-party mixins like underscore-contrib or underscore-db.

ping @davidgtonge @megawac @typicode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions