JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17628F
  • License MIT

A Javascript/Typescript Rustbase driver

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-js

Usage

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

  1. Clone the repository: git clone https://github.com/rustbase/rustbase-js
  2. Enter the directory: cd rustbase-js
  3. Install dependencies: pnpm install

License

MIT License