[GH-ISSUE #928] Why there are no binary/executable? #555

Closed
opened 2026-03-03 01:27:58 +03:00 by kerem · 3 comments
Owner

Originally created by @jcubic on GitHub (Aug 10, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/928

Why provide only the NodeJS module? This is a common thing to run the executable. In order to add lint to the pre-commit hook I need to create an executable. It would be much more useful if there was a binary.

The first thing I did after the installation was use npx markdownlint which give an error, next was searching node_module/.bin for the binary.

Originally created by @jcubic on GitHub (Aug 10, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/928 Why provide only the NodeJS module? This is a common thing to run the executable. In order to add lint to the pre-commit hook I need to create an executable. It would be much more useful if there was a binary. The first thing I did after the installation was use `npx markdownlint` which give an error, next was searching node_module/.bin for the binary.
kerem 2026-03-03 01:27:58 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nschonni commented on GitHub (Aug 10, 2023):

The CLIs are the executable versions https://github.com/DavidAnson/markdownlint#related

<!-- gh-comment-id:1673360866 --> @nschonni commented on GitHub (Aug 10, 2023): The CLIs are the executable versions https://github.com/DavidAnson/markdownlint#related
Author
Owner

@DavidAnson commented on GitHub (Aug 10, 2023):

Distributing the library as a standalone package along with another package for the command-line interface is a pretty common pattern in the Node.js ecosystem.

Regarding your workflow, if you are going to use NPX, then you do not need to also install the package.

As Nick points out, there are two CLI options for this library: a more traditional one (markdownlint-cli)and an alternative (markdownlint-cli2).

<!-- gh-comment-id:1673502754 --> @DavidAnson commented on GitHub (Aug 10, 2023): Distributing the library as a standalone package along with another package for the command-line interface is a pretty common pattern in the Node.js ecosystem. Regarding your workflow, if you are going to use NPX, then you do not need to also install the package. As Nick points out, there are two CLI options for this library: a more traditional one (markdownlint-cli)and an alternative (markdownlint-cli2).
Author
Owner

@jcubic commented on GitHub (Aug 10, 2023):

Thanks for your quick response, I just assumed that those were similar but different projects.

<!-- gh-comment-id:1673516835 --> @jcubic commented on GitHub (Aug 10, 2023): Thanks for your quick response, I just assumed that those were similar but different projects.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#555
No description provided.