Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
couchdb-change-events
Advanced tools
Easy interface to get object changes from CouchDb. This library is basically event emitter that emits changed objects, connection status and errors. If something happens with connection, it will be established again. Library checks also heartbeat and if new heartbeat is not received, connection will be reconnected. So Sit back and Relax, everything is taken care for you.
Key reasons why to choose this package are:
Options for initializing library.
database
: Name of the database to use for this connection. (Mandatory)host
: The hostname of the database you are connecting to. (Default:
localhost
)port
: The port number to connect to. (Default: 5984
)protocol
: Protocol used to connect to CouchDb. http/https
(Default: http
)includeDocs
: Include the associated document with each result. (Default: true
)heartbeat
: Period in milliseconds after which an empty line is sent in the results. (Default: 2000
)lastEventId
: ID of the last events received by the server on a previous connection.autoConnect
: If it's true then connection is started on initializing, otherwise connect function has to be called. (Default: true
)user
: The CouchDb user to authenticate as.password
: The password of that CouchDb user.const CouchdbChangeEvents = require('couchdb-change-events');
const couchdbEvents = new CouchdbChangeEvents({
database: 'my_database'
});
couchdbEvents.on('data', (data) => {
console.log('data', data);
});
couchdbEvents.on('couchdb_status', (status) => {
console.log(`couchdb status: ${status}`);
});
couchdbEvents.on('couchdb_error', (error) => {
console.log('error', error);
});
const CouchdbChangeEvents = require('couchdb-change-events');
const couchdbEvents = new CouchdbChangeEvents({
database: 'my_database',
host: '127.0.0.1',
user: 'username',
password: 'secret'
});
couchdbEvents.on('data', (data) => {
console.log(data);
});
FAQs
This library will emit changes done in couchdb.
The npm package couchdb-change-events receives a total of 22 weekly downloads. As such, couchdb-change-events popularity was classified as not popular.
We found that couchdb-change-events 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.