
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
base-reporter
Advanced tools
Base application plugin for gathering information about files and reporting the results using custom reporters.
Base application plugin for gathering information about files and reporting the results using custom reporters.
Install with npm:
$ npm install base-reporter --save
var reporter = require('base-reporter');
Exposes smart plugin for adding a reporter instance to a base application.
Params
config {Object}: Configuration object.returns {Function}: Plugin function to use with app.useExample
app.use(reporter());
Capture file paths going through a middleware.
returns {Function}: Function that can be used as a middleware function.Example
app.preWrite(/./, app.reporter.captureFiles());
Add a reporter function to the reporter with the given name.
Params
name {String}: Name of the reporterreporter {Function}: Function to run when this reporter is used.returns {Object} this: to enable chainingExample
app.reporter.add('basic', function() {
console.log(this.files);
});
Run a registered reporter function.
Params
name {String}: Name of the report to run.returns {Object} this: to enable chainingExample
app.reporter.report('basic');
//=> file1.js,file2.js,file3.js
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Brian Woodward
Copyright © 2016, Brian Woodward. Released under the MIT license.
This file was generated by verb, v0.9.0, on June 14, 2016.
FAQs
Base application smart plugin for caching data and adding and running custom report functions.
We found that base-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.