store-data
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

store-data

Test JavaScript Style Guide npm

Finally, the simplest way to store data

Features

  • 🌞 Very simple
  • 🧷 Sync & Async
  • 💡 Types included

Install

npm i store-data

Examples

See typescript and javascript examples here.

const Store = require('store-data')

const users = new Store({
  save: false
})

await users.set('id-1', { name: 'Jimi', dev: true })
const user = await users.get('id-1')
console.log(user) // { name: 'Jimi', dev: true }

Docs

All functions are documented with jsdoc on store-data website.

Contribute

Feel free to fork and make pull requests

License

MIT

Package Sidebar

Install

npm i store-data

Weekly Downloads

18

Version

1.2.1

License

MIT

Unpacked Size

9.8 kB

Total Files

5

Last publish

Collaborators

  • itsjimi