Gathering detailed insights and metrics for bole-mongodb
Gathering detailed insights and metrics for bole-mongodb
Gathering detailed insights and metrics for bole-mongodb
Gathering detailed insights and metrics for bole-mongodb
npm install bole-mongodb
Typescript
Module System
Min. Node Version
NPM Version
67.1
Supply Chain
78.6
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
4,369
Last Day
1
Last Week
1
Last Month
29
Last Year
174
MIT License
1 Stars
13 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jan 17, 2015
Minified
Minified + Gzipped
Latest Version
0.2.4
Package Id
bole-mongodb@0.2.4
Size
2.53 kB
NPM Version
1.4.28
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-85.7%
1
Compared to previous week
Last Month
-17.1%
29
Compared to previous month
Last Year
-14.7%
174
Compared to previous year
1
Plugin for the bole logger. Saves the logs to a MongoDB collection, log
by default.
1var bole = require('bole'); 2var boleMongo = require('bole-mongodb'); 3 4MongoClient.connect(url, function (err, db) { 5 if (err) return console.error(err); 6 7 var boleMongoStream = boleMongo({ db: db, capped: true }) 8 .on('error', console.error); 9 10 bole.output([ 11 { level: 'error', stream: boleMongoStream } 12 ]); 13 14 var log = bole('my-module'); 15 });
The Db
object is required. Instead of opening a new connection from inside the plugin, the user is responsible for the connection's lifecycle. Therefore, this plugin assumes that the connection is already open. However, it won't fail if it's not.
MongoDB has the concept of a Capped collection and it can be used for logging purposes. This plugin tries to create a capped collection each time a message is logged. Therefore, it's not required to have the connection open at the time of registering the plugin.
module(options) : Writable
Returns a new Writable stream instance.
Options:
Db
instance. This option is mandatory.logs
.false
.10000000
(10MB rounded up to the nearest multiple of 256).undefined
.false
.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More