db-indo.js
TypeScript icon, indicating that this package has built-in type declarations

7.0.0-b24 • Public • Published

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

Package Sidebar

Install

npm i db-indo.js

Weekly Downloads

1

Version

7.0.0-b24

License

MIT

Unpacked Size

42.8 kB

Total Files

20

Last publish

Collaborators

  • hanspro