
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.
@types/node-polyglot
Advanced tools
TypeScript definitions for node-polyglot
npm install --save @types/node-polyglot
This package contains type definitions for node-polyglot (https://github.com/airbnb/polyglot.js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-polyglot.
declare namespace Polyglot {
interface InterpolationOptions {
smart_count?: number | { length: number } | undefined;
_?: string | undefined;
[interpolationKey: string]: any;
}
interface InterpolationTokenOptions {
prefix?: string | undefined;
suffix?: string | undefined;
}
interface PluralRules {
pluralTypes: { [lang: string]: (n: number) => number };
pluralTypeToLanguages: { [lang: string]: string[] };
}
interface PolyglotOptions {
phrases?: any;
locale?: string | undefined;
allowMissing?: boolean | undefined;
onMissingKey?: ((key: string, options: Polyglot.InterpolationOptions, locale: string) => string) | undefined;
warn?: ((message: string) => void) | undefined;
interpolation?: InterpolationTokenOptions | undefined;
pluralRules?: PluralRules | undefined;
replace?:
| ((
this: string,
interpolationRegex: RegExp,
replacer: (substring: string, ...args: any[]) => string,
) => string | string[])
| undefined;
}
function transformPhrase(phrase: string, options?: number | Polyglot.InterpolationOptions, locale?: string): string;
}
declare class Polyglot {
constructor(options?: Polyglot.PolyglotOptions);
extend(phrases: any, prefix?: string): void;
t(phrase: string, options?: number | Polyglot.InterpolationOptions): string;
clear(): void;
replace(phrases: any): void;
locale(locale?: string): string;
has(phrase: string): boolean;
unset(phrases: any, prefix?: string): void;
}
export = Polyglot;
These definitions were written by Tim Jackson-Kiely, Liam Ross, and Michael Mok.
FAQs
TypeScript definitions for node-polyglot
The npm package @types/node-polyglot receives a total of 59,582 weekly downloads. As such, @types/node-polyglot popularity was classified as popular.
We found that @types/node-polyglot 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.