
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
simple_stats
Advanced tools
Super simple client-side stats logging with no dependencies.
Install via github or npm:
npm install benoneal/simple_stats
// or
npm install simple_stats
In your client-side code, include this lib and connect to your statsd server:
var stats = require('simple_stats');
stats.connect({ server: 'http://myappdomain.com/', prefix: 'my_app' });
stats.increment('initialised');
// will give a metric in your logs like: "my_app.initialised.count"
Stats are queued, even before you connect, so you can start timers and collect metrics immediately, even before you know what your statsd server endpoint is, and then sent after you connect.
Once connected, all stats are aggregated and sent every 2.5 seconds. If you need to send queued stats immediately (such as before a page transition or in window.onunload), then call the "flush" method:
window.onunload = stats.flush
// or
form.submit(function() {
stats.flush();
// other stuff here
});
The timer interface mirrors Lynx's (to make it easier to create isomorphic apps):
var requestTimer = stats.createTimer('get_request');
//...
requestTimer.stop();
// will give something like: "my_app.get_request.timer"
FAQs
Simple client-side statsd logging
The npm package simple_stats receives a total of 0 weekly downloads. As such, simple_stats popularity was classified as not popular.
We found that simple_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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.