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

aedes-persistence-nedb

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aedes-persistence-nedb

NeDB persistence for Aedes.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
174
decreased by-10.77%
Maintainers
1
Weekly downloads
 
Created
Source

aedes-persistence-nedb

Aedes persistence, backed by NeDB.

See aedes-persistence for the full API, and Aedes for usage.

Install

npm i aedes aedes-persistence-nedb --save

API

aedesPersistenceNeDB([opts])

Creates a new instance of aedes-persistence-nedb. Stores NEDB files in ./data by default.

Example:

var NedbPersistence = require('aedes-persistence-nedb');
var Aedes = require('aedes');
var net = require('net');

var db = new NedbPersistence();
var aedes = Aedes({ persistence: db });
var server = net.createServer(aedes.handle);
var port = 1883;

server.listen(port, function () {
  console.log('server listening on port', port);
});

License

MIT

Keywords

FAQs

Package last updated on 23 Dec 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

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