How to persist data in an Electron app?

前端 未结 9 1133
刺人心
刺人心 2021-01-30 07:00

I\'ve been scouring the Electron documentation to try and figure out how to persist data in an Electron app. For example, in iOS or OS X, you could use NSUserDefaults to store u

9条回答
  •  清歌不尽
    2021-01-30 07:28

    Since NeDB's latest release was 4 years ago and there are many open issues, I would not recommend it. But there are many other alternatives you can use now.

    https://github.com/pubkey/rxdb (many features, observable queries)

    https://github.com/pouchdb/pouchdb (simple but many open issues)

    https://github.com/techfort/LokiJS (only in-memory storage)

    https://github.com/typicode/lowdb (good for simple, small datasets)

提交回复
热议问题