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.
@types/node-gettext
Advanced tools
npm install --save @types/node-gettext
This package contains type definitions for node-gettext (https://github.com/alexanderwallin/node-gettext).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-gettext.
// Type definitions for node-gettext 3.0
// Project: https://github.com/alexanderwallin/node-gettext
// Definitions by: Sameer K.C. <https://github.com/sameercaresu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export = GetText;
declare class GetText {
static getLanguageCode(locale: string): string;
readonly locale: string;
readonly domain: string;
constructor(options?: { debug?: boolean | undefined; sourceLocale?: string | undefined });
addTranslations(locale: string, domain: string, translations: object): void;
dgettext(domain: string, msgid: string): string;
dngettext(domain: string, msgid: string, msgidPlural: string, count: number): string;
dnpgettext(domain: string, msgctxt: string, msgid: string, msgidPlural: string, count: number): string;
dpgettext(domain: string, msgctxt: string, msgid: string): string;
emit(eventName: string, eventData: any): void;
getComment(domain: string, msgctxt: string, msgid: string): object | boolean;
gettext(msgid: string): string;
ngettext(msgid: string, msgidPlural: string, count: number): string;
npgettext(msgctxt: string, msgid: string, msgidPlural: string, count: number): string;
off(eventName: "error", callback: (error: Error) => void): void;
on(eventName: "error", callback: (error: Error) => void): void;
pgettext(msgctxt: string, msgid: string): string;
setLocale(locale: string): void;
setTextDomain(domain: string): void;
textdomain(domain: string): void;
warn(message: string): void;
}
These definitions were written by Sameer K.C..
FAQs
TypeScript definitions for node-gettext
The npm package @types/node-gettext receives a total of 3,349 weekly downloads. As such, @types/node-gettext popularity was classified as popular.
We found that @types/node-gettext 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
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.