cosmic.db
v1.0.1
Published
> # Cosmic.db > > > ## 【❓】What is it? > It's an easy version of mongoose. > > ## 【📝】How do I use it? > ```js > const { CosmicDB } = require('cosmic.db') > const myDB = new CosmicDB({ MongoURL: `Your mongodb url` }) > myDB.connection.on('connected', asy
Downloads
6
Readme
Cosmic.db
【❓】What is it?
It's an easy version of mongoose.
【📝】How do I use it?
const { CosmicDB } = require('cosmic.db') const myDB = new CosmicDB({ MongoURL: `Your mongodb url` }) myDB.connection.on('connected', async() => { console.log(`Database connected!`) await myDB.set(`Info-Earth`, { Name: `Earth`, Shape: `Sphere` }) console.log(await myDB.get('Info-Earth')) })
【🎮】The console
Database connected! { Name: `Earth`, Shape: `Sphere` }
【💁♂️】Support
https://discord.gg/3SW3h3vTwd