locloud
v1.0.6
Published
A NodeJS CLI to generate a Non-Relational Database blank project with helper functions to Create, Read, Update, Delete and more
Downloads
9
Maintainers
Readme
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 initializinglocloud
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