Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Lint JavaScript code blocks in markdown files to find syntax errors.
npm install -g mdlint
mdlint is used as a command-line utility. It lints markdown files sourced from different locations using the following four commands:
mdlint <command> <arg> [options]
Commands:
repo <user/repo> lints a README from a GitHub repo
user <username> lints all READMEs from a user's GitHub repos
glob <fileGlob> lints local markdown files that match a file glob
query <query> [options] lints READMEs from repos returned by a GitHub query
Options:
--page=<pageNum> page of results to return from query command. Defaults to 0.
-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. Note that the glob expression must be wrapped in quotes as *
is a special character in the terminal:
mdlint glob "docs/*.md"
Here is an example of mdlint being run on the collection of READMEs returned from page 2 of the grunt
GitHub repositories search query:
mdlint query grunt --page=2
Any argument with a *
or .
will be interpreted as a local file glob, so you can lint a local file with the following shorthand command:
mdlint "README.md"
Any argument without a *
or .
that includes a /
will be interpreted as a GitHub repo, so you can lint a repo with the following shorthand command:
mdlint ChrisWren/grunt-nodemon
Any other argument will be intrepreted as a GitHub user, so you could lint all of a user's repos with the following shorthand command:
mdlint ChrisWren
mdlint accepts certain pre-defined JavaScript partials which it will preprocess so that an error isn't thrown during syntax validation.
gruntplugin: {
}
{
key: 'value'
}
function () {
}
0.0.4 - Added support for implicit commands.
0.0.3 - Added ability to parse javascript
code blocks.
0.0.2 - Made page
parameter optional for query
command.
0.0.1 - Added user
command.
0.0.0 - Initial Release.
FAQs
Lints markdown files to find JavaScript syntax errors
The npm package mdlint receives a total of 43 weekly downloads. As such, mdlint popularity was classified as not popular.
We found that mdlint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.