In your project folder, you should be able to just install using this command:
npm i @joshdb/core @joshdb/mongo** OR **yarn add @joshdb/core @joshdb/mongo
Using the mongo provider goes as such:
const Josh = require("@joshdb/core");const provider = require("@joshdb/mongo");const myDb = new Josh({name: 'test',provider,providerOptions: {url: 'mongodb://localhost'}});db.defer.then( () => {console.log(`Connected, there are ${db.count} rows in the database.`);});
[tbd]