0.0.2 • Published 3 years ago

corx v0.0.2

Weekly downloads
8
License
ISC
Repository
github
Last release
3 years ago

Corx

This package make your create a database using better-sqlite3 quick

Link

Documentation: corx.js.org

Support: discord.gg/hw7XPxz

NPM: npmjs.com/package/corx

Example

const corx = require('corx')
const db = new corx({
    name: 'corx',
    dir: `${process.cwd()}/database/`
})

db.set('x', 'corx')
// => corx

db.set('user', { money: 500, bot: false })
// => { money: 500, bot: false }

db.has('xm')
// => false

db.has('user')
// => true

db.fetch('x')
// => corx

db.get('x')
// => corx

db.all()
// => [
//  { ID: 'x', data: 'corx' },
//  { ID: 'user', data: { money: 500, bot: false } },
// ]

db.del('x')
// => true

Installation

if you're having troubles when installing, please follow this troubleshooting guide.

Linux & Windows

npm install corx

Mac

1. Install XCode
2. Run `npm i -g node-gyp in terminal`
3. Run `node-gyp --python /path/to/python2.7`
4. Run `npm install corx`

Authors

  • 1GPEX - Make all modules, make typing and test
  • Elstargo00 - Help make a package and make typing