Socket
Book a DemoInstallSign in
Socket

module-stats

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-stats

Usage statistics for Node.js modules.

latest
Source
npmnpm
Version
0.7.6
Version published
Maintainers
2
Created
Source

This module has been deprecated and replaced with the Concurix Node.js tracer module

module-stats

This is a utility library used by concurix-monitor. We suggest you check out that library as it will automatically apply this wrapper with logic for integration with the Concurix service.

NPM

Build Status

API

wrap(name:String, mod:Object, opts:Object)

Initializes a tracer for an individual module mod with name (typically the name used in the invocation of require).

The following options are suported:

  • accountKey your account key, data is collected and analyzed per account key
  • archiveInterval time in milliseconds for sending data to the cloud for analysis and visualization. Defaults to 60000 for NODE_ENV=production, 2000 (2 seconds) otherwise.

blacklist(mod:Object)

Blacklists the given object, so that no tracing is performed.

reset()

Stops tracing, clears any cached data, and starts again.

start()

Starts tracing any wrapped objects.

stop()

Stops tracing.

LICENSE

MIT

Keywords

modules

FAQs

Package last updated on 03 Nov 2014

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