Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Small timing counter utility.
Uses process.hrtime
to collect all time intervals between start
and stop
.
$ npm install --save akuku
let tm = require('akuku')('module name'); // kind of like debug
let countSomething = tm.counter('something');
tm.start();
// do something
countSomething();
tm.stop();
next = tm.start(next);
doSomethingAsync(function() {
countSomething(5); // you can optionally pass a bigger counter
next();
});
// later
tm.dump(); // will print sum of times between start and stop, and all associated counters
start(next = undefined, count = 1)
Starts counting time - returns the stop
function. If next
is specified returns wrapped version of next
that
stops timer before calling next.
stop()
Stops counting time.
toString()
Displays formatted internal state - something like:
toObject()
Raw state:
active
- sum of all intervals between start and stop as [ seconds, nano ] paircounter
- number of times start was calledactiveNow
- true if between start and stop when calledcounters
- additional counters as name => values objectcounter(name)
Creates additional named counter.
Returns counter function, which - whenever called - will increment internal counter named name
Its value will become part of the state.
ICS © Damian Krzeminski
FAQs
Small timing counter utility.
The npm package akuku receives a total of 5 weekly downloads. As such, akuku popularity was classified as not popular.
We found that akuku demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.