prismjs-terminal
    Preparing search index...

    Interface PrismJSTerminalOpts

    Options for the highlighting functions

    interface PrismJSTerminalOpts {
        language?: string;
        lineNumbers?: boolean;
        maxWidth?: number;
        minWidth?: number;
        padding?: number;
        theme?:
            | Theme
            | "xonokai"
            | "debug"
            | "moria"
            | "github"
            | "prismDark"
            | "plain";
    }
    Index

    Properties

    language?: string

    The language of the supplied code to highlight. Defaults to tsx if no filename is provided, or else tries to infer the language from the filename. You must have previously called loadLanguages([...]) from PrismJS in order to highlight a given language, if you want something that is not automatically included when tsx and typescript are included.

    'tsx'
    
    lineNumbers?: boolean

    Whether or not to prepend a line number to each line.

    false
    
    maxWidth?: number

    The maximum width to make the block on the screen.

    process.stdout.columns or 80.

    minWidth?: number

    The minimum width to make the block on the screen.

    0
    
    padding?: number

    How many spaces to horizontally pad the code block.

    1
    
    theme?: Theme | "xonokai" | "debug" | "moria" | "github" | "prismDark" | "plain"

    The theme to use. Either a Theme object, or a string identifying one of the built-in themes.

    'moria'