
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@types/ultron
Advanced tools
TypeScript definitions for ultron
npm install --save @types/ultron
This package contains type definitions for ultron (https://github.com/unshiftio/ultron).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ultron.
type Listener = (...args: any[]) => void;
/**
* A Node.js EventEmitter instance or an `eventemitter3` instance.
*/
interface EventEmitter {
on(event: string | symbol, fn: Listener): void;
once(event: string | symbol, fn: Listener): void;
removeListener(event: string | symbol, fn: Listener): void;
listeners(event: string | symbol): any[];
eventNames?(): Array<string | symbol>;
}
/**
* Ultron is high-intelligence robot. It gathers intelligence so it can start improving
* upon his rudimentary design. It will learn from your EventEmitting patterns
* and exterminate them.
*/
interface Ultron {
/**
* Register a new EventListener for the given event.
*
* @param event Name of the event.
* @param fn Callback function.
* @param context The context of the function.
*/
on(event: string | symbol, fn: Listener, context?: any): this;
/**
* Add an EventListener that's only called once.
*
* @param event Name of the event.
* @param fn Callback function.
* @param context The context of the function.
*/
once(event: string | symbol, fn: Listener, context?: any): this;
/**
* Remove the listeners we assigned for the given event(s).
*/
remove(...names: Array<string | symbol>): this;
/**
* Destroy the Ultron instance, remove all listeners and release all references.
*/
destroy(): boolean;
}
declare const Ultron: {
/**
* @param ee EventEmitter instance we need to wrap.
*/
(ee: EventEmitter): Ultron;
/**
* @param ee EventEmitter instance we need to wrap.
*/
new(ee: EventEmitter): Ultron;
};
declare namespace Ultron {
export { EventEmitter, Listener };
}
export = Ultron;
These definitions were written by Renée Kooi.
FAQs
TypeScript definitions for ultron
The npm package @types/ultron receives a total of 656 weekly downloads. As such, @types/ultron popularity was classified as not popular.
We found that @types/ultron 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.