Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
app-usage-stats
Advanced tools
Example
const UsageStats = require('app-usage-stats')
const stats = new UsageStats('UA-987654321', 'app-name')
Param | Type | Description |
---|---|---|
tid | string | Google Analytics tracking ID |
appName | string | App name |
[options] | object | |
[options.dimensionMap] | object | A custom dimension name to ID Map. |
[options.metricMap] | object | A custom metric name to ID Map. |
[options.sendInterval] | object | If specified, stats will be sent no more frequently than this period. |
Track a hit.
Kind: instance method of AppUsageStats
Param | Type | Description |
---|---|---|
dimensions | Array.<object> | dimension-value maps |
metrics | Array.<object> | metric-value maps |
Save stats
Kind: instance method of AppUsageStats
Save stats sync.
Kind: instance method of AppUsageStats
Load stats
Kind: instance method of AppUsageStats
Loads stats sync.
Kind: instance method of AppUsageStats
Send and reset stats.
Kind: instance method of AppUsageStats
© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.
FAQs
A convention for tracking javascript application usage
The npm package app-usage-stats receives a total of 1,880 weekly downloads. As such, app-usage-stats popularity was classified as popular.
We found that app-usage-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.