
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.
@1k/emitter
Advanced tools
A tiny (less than 1k) event emitter.
npm install @1k/emitter --save
var Emitter = require('@1k/emitter');
var emitter = new Emitter();
emitter.on('some-event', function (arg1, arg2, arg3) {
//
});
emitter.emit('some-event', 'arg1 value', 'arg2 value', 'arg3 value');
Subscribe to an event
event
- the name of the event to subscribe tocb
- the function to call when event is emittedctx
- (OPTIONAL) - the context to bind the event cb toSubscribe to an event only once
event
- the name of the event to subscribe tocb
- the function to call when event is emittedctx
- (optional) - the context to bind the event cb toUnsubscribe from an event or all events. If no cb is provided, it unsubscribes you from all events.
event
- the name of the event to unsubscribe fromcb
- the function used when binding to the eventTrigger a named event
event
- the event name to emitarguments...
- any number of arguments to pass to the event subscribersFAQs
A tiny event emitter
The npm package @1k/emitter receives a total of 0 weekly downloads. As such, @1k/emitter popularity was classified as not popular.
We found that @1k/emitter 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.