Socket
Socket
Sign inDemoInstall

markdown-list-linter-cli

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    markdown-list-linter-cli

CLI tool to lint markdown lists to warn when list items are not alphabetically ordered


Version published
Maintainers
1
Install size
192 kB
Created

Readme

Source

Markdown List Linter

Command line interface (CLI) tool to lint markdown lists and warn when list items are not alphabetically ordered.

A complete solution

This functionality is available to be consumed in three different ways:

  • A GitHub Action as part of your CI/CD process

  • 📦 An NPM package that can be consumed in your JavaScript or TypeScript code

  • 💻 A CLI that you can run in your terminal

Installation

You can install this CLI tool globally.

npm install markdown-list-linter-cli -g

Usage

Very simple to use all results will be printed in the terminal.

> markdown-list-linter -f ./data/valid_file.md

When there are no errors the returned object should look something like this.

SUMMARY:
No errors found

If you supply a markdown file which has a list that needs to be sorted.

> markdown-list-linter -f ./data/invalid_file.md

When there are errors the returned object should look something like this.

SUMMARY:
Markdown list needs to be sorted

DETAILS:
Please correct the alphabetical order for these heading items
    Section #1
        D
        A
        B
        C

Please correct the alphabetical order for these list items
    Section #1
        African Buffalo
        Aardwolf

    Section #2
        Chameleon
        Camel
        Cheetah
        Canary

The items in each section are the items in the list which need to be reordered.

For help command, type the following.

> markdown-list-linter -h

Keywords

FAQs

Last updated on 10 Jul 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