New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

css3.db

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css3.db

This is a simple database that uses css as the storage format.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Css3.DB

downloadsBadge versionBadge

A simple database that uses css as the storage format.

Installation

npm install css3.db

Usage

const CSS3DB = require('css3.db');

// Create a new html database
const cssDB = new CSS3DB(__dirname+'/db1.css');

// Set key/value pair
cssDB.set('foo', 'boo') // -> true

// Get length (or size)
cssDB.length // -> 1
cssDB.size // -> 1

// Get key
cssDB.get('foo') // -> 'boo'

// Has key
cssDB.has('foo') // -> true

// Delete key
cssDB.delete('foo') // -> true

// Get entries
cssDB.entries() // -> [{"key": "foo", "value": "boo"}]

// Get keys
cssDB.keys() // -> ["foo"]

// Get values
cssDB.values() // -> ["boo"]

// Clear all entries
cssDB.clear() // -> true

Keywords

database

FAQs

Package last updated on 03 Sep 2021

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