Socket
Socket
Sign inDemoInstall

keal

Package Overview
Dependencies
7
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    keal

keal is key value storage


Version published
Weekly downloads
3
decreased by-88.89%
Maintainers
1
Install size
97.1 kB
Created
Weekly downloads
 

Readme

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

Last updated on 21 Aug 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc