Package Exports
- rustbase-js
- rustbase-js/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rustbase-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rustbase JS
A driver to use Rustbase with NodeJS
Installation
npm install rustbase-jsUsage
const { connect } = require('rustbase-js');
const rustbase = connect("rustbase://<url>:23561/supercooldatabase");With username and password
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");With SSL
You can also connect to a Rustbase database with SSL.
const rustbase = connect("rustbase://username:password@<url>:23561/supercooldatabase", {
tls: true,
});Contribute
Prerequisites
- pnpm: We use pnpm as our package manager. You can install it with
npm install -g pnpm.
Setup
- Clone the repository:
git clone https://github.com/rustbase/rustbase-js - Enter the directory:
cd rustbase-js - Install dependencies:
pnpm install