
Research
/Security News
TensorLake npm SDK Compromised in ChainDrop Shai-Hulud Credential-Stealing Attack
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.
@types/timeago
Advanced tools
npm install --save @types/timeago
This package contains type definitions for timeago (http://timeago.yarp.com/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/timeago.
/// <reference types="jquery" />
declare namespace Timeago {
type DynamicMessage = (n: number, distanceMillis: number) => string;
interface LocalizedStrings {
prefixAgo: string | null;
prefixFromNow: string | null;
suffixAgo: string | null;
suffixFromNow: string | null;
inPast: string;
seconds: string | DynamicMessage;
minute: string | DynamicMessage;
minutes: string | DynamicMessage;
hour: string | DynamicMessage;
hours: string | DynamicMessage;
day: string | DynamicMessage;
days: string | DynamicMessage;
month: string | DynamicMessage;
months: string | DynamicMessage;
year: string | DynamicMessage;
years: string | DynamicMessage;
wordSeparator: string;
numbers: string[];
}
interface Settings {
refreshMillis: number;
allowPast: boolean;
allowFuture: boolean;
localeTitle: boolean;
cutoff: number;
autoDispose: boolean;
strings: LocalizedStrings;
}
interface TimeagoStatic {
(timestamp: Date | string | number | Element): string;
parse(timestamp: string): Date;
inWords(distanceMillis: number): string;
datetime(elem: Element): Date;
isTime(elem: Element): boolean;
settings: Settings;
}
}
interface JQuery {
timeago(action: "update", timestamp: Date | string): this;
timeago(action?: "init" | "updateFromDOM" | "dispose"): this;
}
interface JQueryStatic {
timeago: Timeago.TimeagoStatic;
}
These definitions were written by Christophe Coevoet.
FAQs
TypeScript definitions for timeago
The npm package @types/timeago receives a total of 1,555 weekly downloads. As such, @types/timeago popularity was classified as popular.
We found that @types/timeago 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.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.

Research
/Security News
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.