Socket
Book a DemoInstallSign in
Socket

jizy-data

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jizy-data

A simple JS data storage library.

2.1.2
latest
Source
npmnpm
Version published
Weekly downloads
46
-78.9%
Maintainers
1
Weekly downloads
 
Created
Source

jizy-data

A simple data management library for JavaScript applications.

Installation

npm install jizy-data

Usage

import jData from 'jizy-data';

const store = new jData();

// Set a value
store.set('key', 'value');

// Get a value
console.log(store.get('key')); // 'value'

// Set multiple values
store.sets({ foo: 1, bar: 2 });

// Set a default value (only if not already set)
store.def('baz', 42);

// Check if a key exists
console.log(store.has('foo')); // true

API

new jData()

Creates a new data store instance.

.set(key, value)

Sets a value for the given key.

.sets(object)

Sets multiple key-value pairs from an object.

.get(key, [default])

Gets the value for a key, or returns default (or null) if not set.

.def(key, value)

Sets a default value for a key if it is not already set.

.has(key)

Returns true if the key exists in the store.

Keywords

jizy

FAQs

Package last updated on 27 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.