![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@types/turndown
Advanced tools
Readme
npm install --save @types/turndown
This package contains type definitions for turndown (https://github.com/domchristie/turndown).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown.
declare class TurndownService {
constructor(options?: TurndownService.Options);
addRule(key: string, rule: TurndownService.Rule): this;
keep(filter: TurndownService.Filter): this;
remove(filter: TurndownService.Filter): this;
use(plugins: TurndownService.Plugin | TurndownService.Plugin[]): this;
escape(str: string): string;
turndown(html: string | TurndownService.Node): string;
options: TurndownService.Options;
rules: TurndownService.Rules;
}
export = TurndownService;
declare namespace TurndownService {
interface Options {
headingStyle?: "setext" | "atx" | undefined;
hr?: string | undefined;
br?: string | undefined;
bulletListMarker?: "-" | "+" | "*" | undefined;
codeBlockStyle?: "indented" | "fenced" | undefined;
emDelimiter?: "_" | "*" | undefined;
fence?: "```" | "~~~" | undefined;
strongDelimiter?: "__" | "**" | undefined;
linkStyle?: "inlined" | "referenced" | undefined;
linkReferenceStyle?: "full" | "collapsed" | "shortcut" | undefined;
keepReplacement?: ReplacementFunction | undefined;
blankReplacement?: ReplacementFunction | undefined;
defaultReplacement?: ReplacementFunction | undefined;
}
interface Rule {
filter: Filter;
replacement?: ReplacementFunction | undefined;
}
interface Rules {
options: Options;
array: Rule[];
blankRule: ReplacementFunction;
defaultRule: ReplacementFunction;
keepReplacement: ReplacementFunction;
add(key: Filter, rule: Rule): void;
forEach(callback: (rule: Rule, index: number) => any): void;
forNode(node: Node): Rule;
keep(filter: Filter): void;
remove(filter: Filter): void;
}
type Plugin = (service: TurndownService) => void;
type Node = HTMLElement | Document | DocumentFragment;
type Filter = TagName | TagName[] | FilterFunction;
type FilterFunction = (node: HTMLElement, options: Options) => boolean;
type ReplacementFunction = (
content: string,
node: Node,
options: Options,
) => string;
type TagName = keyof HTMLElementTagNameMap;
}
These definitions were written by Sergey Zhidkov.
FAQs
Unknown package
The npm package @types/turndown receives a total of 149,813 weekly downloads. As such, @types/turndown popularity was classified as popular.
We found that @types/turndown demonstrated a healthy version release cadence and project activity because the last version was released less than 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 unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.