Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rqlited-spawn

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rqlited-spawn

A wrapper around rqlited for spawning rqlite nodes

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rqlited-spawn

npm

Installation

npm i rqlited-spawn

Usage

const startRqliteNode = require('rqlited-spawn');

async function main() {
    // start two nodes
    const node1 = await startRqliteNode({
      data: 'data',
      api: 4001,
      raft: 4002,
      timeout: 10000
    });

    const node2 = await startRqliteNode({
      data: 'data2',
      api: 4003,
      raft: 4004,
      timeout: 10000,
      leader: 'localhost:4002'
    });

    // stop them
    node1.kill();
    node2.kill();
}

License

MIT

FAQs

Package last updated on 29 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc