New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

keal

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keal

keal is key value storage

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-38.1%
Maintainers
1
Weekly downloads
 
Created
Source

keal

NPM

install size dependencies

keal is key value storage

install

npm install keal --save

use

const path = require('path')
const Keal = require('keal');

//initial database folder
const keal = new Keal({
  databasePath: path.join(__dirname, 'database'),
  databaseName: 'NASA',
});

//put with key value
keal.put('firstName', 'behnam');
keal.put('lastName', 'mohammadi');
keal.put('info', {
  age: 28,
  height: 175
});

//get
//output: get behnam
keal.get('firstName');

//get
//output: get mohammadi
keal.get('lastName');

//get
//output: get { age: 28, height: 175 }
keal.get('info');

//gets
//output: gets [ 'behnam', 'mohammadi', { age: 28, height: 175 } ]
keal.gets(['firstName', 'lastName', 'info']);

//get all keys
//output: keys [ 'firstName', 'lastName', 'info' ]
keal.keys();

//get all values
//output: values [ 'behnam', 'mohammadi', { age: 28, height: 175 } ]
keal.values();

Node Compatibility Version > 6

Keywords

FAQs

Package last updated on 21 Aug 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc