Socket
Socket
Sign inDemoInstall

nodestat2

Package Overview
Dependencies
3
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "nodestat2",
"version": "1.0.2",
"version": "1.0.3",
"description": "nodestat",

@@ -5,0 +5,0 @@ "main": "nodestat.js",

# nodestat2
nodejs metrics
![график nodestat](http://i.imgur.com/SdRfXJH.png)
```
nodestat.init({
app, // express приложение (добавит в приложение страницу /nodestat с графиками)
mongoClient, // коннект к Mongo
domain, // домен
pool, // список доменов
period, // срок хранения метрик в Mongo
interval // интервал записи метрик в Mongo
})
nodestat.inc(metricName[, value]);
nodestat.avg(metricName, value);
nodestat.max(metricName, value);
nodestat.per(metricName, totalValue[, scoredValue]);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc