npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

markdownlint-rule-unique-table-numbering

v1.0.1

Published

A markdownlint rule that enforces unique first column in tables if first and second row are sequential numbers with same prefix.

Readme

markdownlint-rule-unique-table-numbering

A custom markdownlint rule that checks that tables with a numbering in the first column has all unique first column.

Overview

This rule is for the Node.js markdownlint library and its associated tools.

If the first columns in the first and second row has ascending values then the whole column needs to be unique.

Why?

Many tables have a unique identifier in the first column. This rule tries to deduce if the first column is a column with an id and then enforces uniqueness for the whole column.

Examples of where this is useful:

  • Allocation of document numbers
  • Database descriptions
  • Lists of things which needs to be uniquely identified

Example structure:

# Document Register

| Document Number | Author         | Title                                 |
| --------------- | -------------- | ------------------------------------- |
| LOTR-001        | Bilbo Baggins  | There and Back Again                  |
| LOTR-002        | Gandalf        | The Quest of Erebor                   |
| LOTR-003        | Frodo Baggins  | The Red Book of Westmarch             |
| LOTR-004        | Samwise Gamgee | The Tale of Samwise the Brave         |
| LOTR-005        | Elrond         | The Council of Elrond Proceedings     |
| LOTR-006        | Aragorn        | The Annals of the Kings of Gondor     |
| LOTR-007        | Legolas        | The Journey of the Fellowship         |
| LOTR-008        | Pippin Took    | The Guard of the Citadel              |

Installation

npm install --save-dev markdownlint-rule-unique-table-numbering

Usage

With markdownlint-cli

If installed locally, markdownlint will auto-discover the rule by package name. You can use:

markdownlint --rules markdownlint-rule-unique-table-numbering *.md

If you want to use a direct path, you can still use:

markdownlint --rules ./index.cjs *.md

With markdownlint-cli2

If installed locally, markdownlint-cli2 will auto-discover the rule by package name. You can add it to your config file using the package name:

{
    "customRules": [
        "markdownlint-rule-unique-table-numbering"
    ]
}

Or to .markdownlint-cli2.yaml:

customRules:
    - markdownlint-rule-unique-table-numbering

To use a direct path, you can still reference index.cjs if needed:

{
    "customRules": [
        "./index.cjs"
    ]
}

With VS Code

If using the markdownlint extension for VS Code, install this package in your workspace and the rule will be auto-discovered. For advanced usage, see the markdownlint-cli2 examples above or refer to the extension documentation.

Testing

To run the tests:

npm test

Contributing

Pull requests and issues are welcome! Please ensure your code passes linting and tests before submitting.

License

MIT