A driver to use Rustbase with NodeJS
npm install rustbase-js
const { connect } = require('rustbase-js');
const rustbase = connect("rustbase://<url>:23561/supercooldatabase");
You can also connect to a Rustbase database with a username and password. Just add them to the URL.
const rustbase = connect("rustbase://username:password@<url>:23561/supercooldatabase");
You can also connect to a Rustbase database with SSL.
const rustbase = connect("rustbase://username:password@<url>:23561/supercooldatabase", {
tls: true,
});
- pnpm: We use pnpm as our package manager. You can install it with
npm install -g pnpm
.
- Clone the repository:
git clone https://github.com/rustbase/rustbase-js
- Enter the directory:
cd rustbase-js
- Install dependencies:
pnpm install