Socket
Socket
Sign inDemoInstall

docsify-terminal-block

Package Overview
Dependencies
129
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    docsify-terminal-block

[![](https://data.jsdelivr.com/v1/package/npm/docsify-terminal-block/badge)](https://www.jsdelivr.com/package/npm/docsify-terminal-block)


Version published
Weekly downloads
28
increased by16.67%
Maintainers
1
Install size
16.5 MB
Created
Weekly downloads
 

Readme

Source

docsify-terminal-block 🖥️

A docsify plugin to add pretty terminal blocks to your docs. It has Copy to Clipboard functionality too.

Screenshots

Example

Installation

Add the docsify-terminal-block plugin to your index.html after docsify. The plugin is available on jsdelivr (below), unpkg, and other CDN services that auto-publish npm packages.

<script src="https://cdn.jsdelivr.net/npm/docsify-terminal-block@1.0.2"></script>

Usage

Add the terminal tag to your markdown file to create a terminal block.


    ```terminal
    npm run start
    ```

You can add prefixes to the terminal block to change the style of the line. For example adding $ or >:


    ```terminal
    $|npm run start
    >|npm run start
    ```

You can make the line a warning, info, error, or success by adding warning, info, error, or success after the prefix:


    ```terminal
    $|warning|npm run build
    >|info|npm run start
    >|error|npm run start
    >|success|npm run start
    ```

Example


    ```terminal
    npm run start
    $|npm run start
    $|warning|npm run build
    >|info|npm run start
     |...
    >|error|npm run start
    >|success|npm run start

    warning|npm run build
    ```

Made with ❤️

FAQs

Last updated on 14 Apr 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc