2.0.3 • Published 3 years ago

taichi.db v2.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

taichi.db logo A quick, simple, and Realtime database manager build with JSON wrapper and easy for use.

☯ Feature

  • Quick, Lightweight, Simple, and Realtime Database Manager,
  • Build with 0 Dependencies,
  • Easy to use,
  • Open Source!

☯ Getting Started

npm i taichi.db

NOTE: Before Upgrading, Please do Backup data if you don't want lose any data.

☯ Docs

MethodDescriptionParametersreturn
getA function that gets the name of the object in the database.A parameter that gets the object namestring, number, boolean, or object
setA function that can change the value of the name of the object.a parameter that takes the name of the object and value to change-
pushA push array function from the name of the objectA parameter that gets an object name with value for push-
allA function that gets all objects from the database-Object
rmA function that removes the name of the object with the value in the databaseA parameter that gets the name of the object in the database.-
importA function that imported JSON filesA parameter that gets the file name for import-
exportA function that exports the database into JSON fileA parameter that gets the file name for export (Optional)-

☯ Example

const taichidb = require('taichi.db')
const db = taichidb('student.json') // Filename is optional. If it's not provide any filename, Taichi db will uses default path (at node_modules/taichi.db/db.json)

// Object example
db.set('Michael', {
  grade: '7',
  age: 14,
  gender: 'Male',
  attitude_value: 'B',
  total_scores: 778
})
// You don't need Async in Taichi.db.

// Get value
var michael = db.get('Michael')
// Do anything...


// Remove example
db.rm('Michael')

☯ License

Copyright (c) 2020 Yonle

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

☯ Community

2.0.3

3 years ago

2.0.2

3 years ago

2.0.0-lts

3 years ago

2.0.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

2.1.0-lts

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.0

4 years ago

1.1.8

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago