Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdlint

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdlint

Lints markdown files to find JavaScript syntax errors

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
decreased by-72.91%
Maintainers
1
Weekly downloads
 
Created
Source

mdlint

Lint JavaScript code blocks in markdown files to find syntax errors.

NPM version
Dependency Status
Travis Status

Installation

npm install -g mdlint

Usage

mdlint is used as a command-line utility. You lint a set of local markdown files matched by a glob, a GitHub repository's README, or query the GitHub API to go bounty hunting for syntax errors.

mdlint <command> <arg(s)> [options]

Commands:

repo  <user/repo>            lints a README from a GitHub repo
user <GitHub username>       lints all READMEs from a user's GitHub repos
glob  <fileGlob>             lints local markdown files that match a file glob
query <queryString> [page]   lints READMEs from repos returned by a GitHub query

Options:

-s, --silent   only report failing lints
-h, --help     output usage information
-V, --version  output the version number

Here is an example of mdlint being run on a GitHub repo's README file:

mdlint repo ChrisWren/grunt-pages

Here is an example of mdlint being run on all READMEs from a user's GitHub repos:

mdlint user ChrisWren

Here is an example of mdlint being run on a set of local files:

mdlint glob docs/*.md

Here is an example of mdlint being run on a collection of READMEs returned from the grunt GitHub repositories search query:

mdlint query grunt

Accepted Psuedocode

mdlint accepts certain pre-defined psuedocode which it will preprocess so that an error isn't thrown during syntax validation.

Object pseudocode

gruntplugin: {
  
}
{
  key: 'value'
}

Function pseudocode

function () {
  
}

Changelog

0.0.1 - Added user command.

0.0.0 - Initial Release.

Keywords

FAQs

Package last updated on 13 Jul 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc