Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/marked-terminal

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/marked-terminal

TypeScript definitions for marked-terminal

  • 3.1.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
decreased by-5.39%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/marked-terminal

Summary

This package contains type definitions for marked-terminal (https://github.com/mikaelbr/marked-terminal).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marked-terminal.

index.d.ts

// 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 (" -> &quot; 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;
    }
}

Additional Details

  • Last updated: Tue, 10 Oct 2023 18:07:32 GMT
  • Dependencies: @types/chalk, @types/marked
  • Global values: TerminalRenderer

Credits

These definitions were written by Bryan Kendall.

FAQs

Package last updated on 10 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc