Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
standard-markdown
Advanced tools
Test your Markdown files for Standard JavaScript Style™
npm install standard-markdown --save
This module works just like standard
, but instead of linting javascript files, it lints GitHub-Flavored js
and javascript
code blocks inside markdown files.
Lint everything in the current directory:
standard-markdown
Or lint some other directory:
standard-markdown some/other/directory
All files with .md
or .markdown
extension are linted, and the following directories are ignored:
.git
node_modules
vendor
If you want to specify which files to lint / which files to ignore you can use glob patterns
# This will lint everything in some/directory except everything in some/directory/api
standard-markdown some/directory **/*.md !api/**/*.md
# You also don't need to specify CWD to use globs
# This will only lint markdown file in the current directory
standard-markdown *.md
This module also provides the ability to automatically fix common syntax issues like extra semicolons, bad whitespacing, etc. This functionality is provided by standard.
standard-markdown some/directory --fix
Once the module has attempted to fix all your issues it will run the linter on the generated files so you can see how much it fixed.
This module disables certain rules that were considered inappropriate for linting JS blocks:
See #2, #18, and #19 for reasons.
For more examples of what is and isn't allowed, see the clean and dirty test fixtures.
npm install
npm test
glob
with support for multiple patterns and exposes a Promise APIMIT
FAQs
Test your Markdown files for Standard JavaScript Style™
The npm package standard-markdown receives a total of 834 weekly downloads. As such, standard-markdown popularity was classified as not popular.
We found that standard-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.