🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

store-data

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

store-data

Finally, the simplest way to store data

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

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

Keywords

database

FAQs

Package last updated on 21 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts