7.0.0-b24 • Published 5 years ago

db-indo.js v7.0.0-b24

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

Database Indonesia

Cara penggunaan ?

const db = require("db-indo.js")

db.set('userInfo', { difficulty: 'Easy' })
// -> { difficulty: 'Easy' }
 
db.push('userInfo.items', 'Sword')
// -> { difficulty: 'Easy', items: ['Sword'] }
 
db.add('userInfo.balance', 500)
// -> { difficulty: 'Easy', items: ['Sword'], balance: 500 }
 
db.push('userInfo.items', 'Watch')
// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 500 }
db.add('userInfo.balance', 500)
// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 1000 }
 
db.get('userInfo.balance') // -> 1000
db.get('userInfo.items') // ['Sword', 'Watch']

Instalasi

Linux

npm i db-indo.js

Windows

Run: npm -g --add-python-to-path install windows-build-tools node-gyp in powershell as administrator
Restart CMD prompt windows (Keluar dan buka kembali)
Run: npm i db-indo.js
Mac

Install: XCode
Run: npm i -g node-gyp in terminal
Run: node-gyp --python /path/to/python2.7 (lewati langkah ini jika Anda tidak menginstal python 3.x)
Run: npm i db-indo

Selengkapnya hubungi Admin