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

node-stats-aggregator

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-stats-aggregator

A stats aggregator for NodeJS with a pluggable output system.

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
2
Created
Source

node-stats-aggregator

A stats aggregator for NodeJS with a pluggable output system.

Usage

const StatsAggregator = require('node-stats-aggregator');
const agg = new StatsAggregator('my-aggregator', ['key1', 'key2'], ['val1','val2','val3']);

API

StatsAggregator

//adding output plugins 
agg.plugins.add(new OutputPlugin());

OutputPlugin

Output Plugins

MySql

const mysqlOutput = new StatsAggregator.MysqlOutputPlugin({
    keyFields: ['key1', 'key2'],
    valueFields: ['val1','val2','val3'],
    client: mysqlClient
});

StatsD

Keywords

nodejs

FAQs

Package last updated on 08 Aug 2018

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