
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
enmap-rethink
Advanced tools
Enmap-Rethink is a provider for the [Enmap](https://www.npmjs.com/package/enmap) module. It enables the use of a persistent data structure using RethinkDB as a backend (well, `rethinkdbdash` really).
Enmap-Rethink is a provider for the Enmap module. It enables the use of a persistent data structure using RethinkDB as a backend (well, rethinkdbdash really).
To install enmap-rethink simply run npm i enmap-rethink. You need to have a RethinkDB server already installed, this module does not install it for you.
// Load Enmap
const Enmap = require('enmap');
// Load EnmapRethink
const EnmapRethink = require('enmap-rethink');
// Initialize the database with the name "test"
const rethink = new EnmapRethink({ name: 'test' });
// Initialize the Enmap with the provider instance.
const myColl = new Enmap({ provider: rethink });
Shorthand declaration:
const Enmap = require('enmap');
const EnmapRethink = require('enmap-rethink');
const myColl = new Enmap({ provider: new EnmapRethink({ name: 'test' }); });
Enmap-Rethink will automatically create a separate database (default dbName:
enmap) when loading, assuming it has permissions to do so.
// Example with all options.
const rethink = new EnmapRethink({
name: 'test',
dbName: 'enmap',
host: 'localhost',
port: 28015
});
The name option is mandatory and defines the name of the table where the data is stored.
The dbName is optional and defines the database name in the rethink server where data is stored. If multiple enmap instances connect to the same database, the same database is used with different table names. The default dbName is enmap.
The host is optional and defines which host this module attempts to connect to. The default host is localhost.
The port is optional and defines which port is used to connect to the Rethink DB. The default port is 28015.
FAQs
Enmap-Rethink is a provider for the [Enmap](https://www.npmjs.com/package/enmap) module. It enables the use of a persistent data structure using RethinkDB as a backend (well, `rethinkdbdash` really).
We found that enmap-rethink demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.