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

stathat-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stathat-wrapper

A wrapper around stathat for handling multiple environments

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
1
-93.75%
Maintainers
1
Weekly downloads
 
Created
Source

stathat-wrapper

Wraps stathat's (nodejs library)[https://github.com/stathat/shlibs/tree/master/node] to easily build prefixed statistics based on runtime environment and application

Usage

var stathatWrapper = require('stathat-wrapper'),
    stathat = stathatWrapper("you@example.com", {
      // configuration options
      prefix: "application name" // default is nothing
      environment: "production" // default is process.env.NODE_ENV || 'development'
      separator: " - " // separates prefix from environment from statname, default is " - " 
      reporting: true // set to false to turn off reporting (i.e. in testing mode)
    });

stathat.count('statistic', 3); // reports "application name - production - statistic": 3
stathat.value('value', 22.75); // reports "application name - production - value": 22.75

Tests

run the test suite with npm test or mocha

Keywords

stathat

FAQs

Package last updated on 03 Jul 2013

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