Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/marked-terminal
Advanced tools
npm install --save @types/marked-terminal
This package contains type definitions for marked-terminal (https://github.com/mikaelbr/marked-terminal).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked-terminal.
// Type definitions for marked-terminal 3.1
// Project: https://github.com/mikaelbr/marked-terminal
// Definitions by: Bryan Kendall <https://github.com/bkendall>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Chalk } from 'chalk';
import { Renderer } from 'marked';
export as namespace TerminalRenderer;
export = TerminalRenderer;
declare class TerminalRenderer extends Renderer {
constructor(options?: TerminalRenderer.TerminalRendererOptions)
}
declare namespace TerminalRenderer {
interface TerminalRendererOptions {
code?: Chalk | ((s: string) => string) | undefined;
blockquote?: Chalk | ((s: string) => string) | undefined;
html?: Chalk | ((s: string) => string) | undefined;
heading?: Chalk | ((s: string) => string) | undefined;
firstHeading?: Chalk | ((s: string) => string) | undefined;
hr?: Chalk | ((s: string) => string) | undefined;
listitem?: Chalk | ((s: string) => string) | undefined;
table?: Chalk | ((s: string) => string) | undefined;
paragraph?: Chalk | ((s: string) => string) | undefined;
strong?: Chalk | ((s: string) => string) | undefined;
em?: Chalk | ((s: string) => string) | undefined;
codespan?: Chalk | ((s: string) => string) | undefined;
del?: Chalk | ((s: string) => string) | undefined;
link?: Chalk | ((s: string) => string) | undefined;
href?: Chalk | ((s: string) => string) | undefined;
// Formats the bulletpoints and numbers for lists
list?: ((body: string, ordered?: boolean) => string) | undefined;
// Reflow and print-out width
width?: number | undefined; // only applicable when reflow is true
reflowText?: boolean | undefined;
// Should it prefix headers?
showSectionPrefix?: boolean | undefined;
// Whether or not to undo marked escaping
// of enitities (" -> " etc)
unescape?: boolean | undefined;
// Whether or not to show emojis
emoji?: boolean | undefined;
// Options passed to cli-table
tableOptions?: any;
// The size of tabs in number of spaces or as tab characters
tab?: number | undefined;
}
}
TerminalRenderer
These definitions were written by Bryan Kendall.
FAQs
TypeScript definitions for marked-terminal
The npm package @types/marked-terminal receives a total of 12,994 weekly downloads. As such, @types/marked-terminal popularity was classified as popular.
We found that @types/marked-terminal 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.