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

html5.db

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html5.db

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

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

Html5.DB

A simple database that uses html as the storage format.

Installation

npm install html5.db

Usage

const HTML5DB = require('html5.db');

// Create a new html database
const htmlDB = new HTML5DB(__dirname+'/db1.html');

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

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

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

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

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

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

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

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

// Clear all entries
htmlDB.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