npm.io
1.0.6 • Published 6 years agoCLI

locloud

Licence
ISC
Version
1.0.6
Deps
1
Size
7 kB
Vulns
0
Weekly
0

locloud

Locally generate a Non Relational Database and initialize it with helper functions to Create, Read, Update, Delete and much more.

Installation

$ npm install -g locloud

Usage

  • Hit the command line on your project's folder
  • Write locloud and enter

Starter

  • A locloud-starter.js file will be generated after initializing locloud on the shell.
    const locloud = require('./locloud')
    const colorxjs = require('colorxjs')

    locloud.getTable('db').then(obj=>{
        console.log(obj)
    
    })

Documentation

create(tableName)
  • Creates a new db on your folder
genOrUpdate(key, what, tableName)
  • Creates or Updates a key
readOn(key)
  • Promise reading a key
deleteThis(key, tableName)
  • Delete the key
zeroOn(key, tableName)
  • Zero a number on a key
emptyOn(key, tableName)
  • Empty a String on a key
toggleBoolOn(key, tableName)
  • Toggle boolean on a key
plus(amount, key, tableName)
  • Add to a number value on a key

Keywords