New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nedb-party

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nedb-party

A library for making nedb usage multi-process capable.

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

nedb-party

A library for making nedb multi-process capable.

Basically, it'll check to see if another process has the db locked, if it does, it'll send requests to that process, through rpc, to perform change operations.

Note: Only methods that receive callbacks are supported. It does not yet support event methods .on, etc.

This idea is inspired heavily by substack's level-party npm package.

Installation

npm install --save nedb-party

Example Usage

var Datastore = require('nedb-party')

var options = {filename: __dirname + '/example.db'}

var db1 = new Datastore(options)

// in the same process or not
var db2 = new Datastore(options)

db1.insert({hello: "World"), function(err, newDoc) {
  console.log('inserted doc:', newDoc)
});

db1.insert({hello: "Moon"), function(err, newDoc2) {
  console.log('inserted doc:', newDoc2)
});

Keywords

nedb

FAQs

Package last updated on 21 Feb 2016

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