
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
posthtml-lint
Advanced tools
posthtml-lint is a PostHTML plugin to lint static markup.
Currently supported rules include no-duplicate-ids, no-duplicate-tags, no-empty-tags and no-missing-attributes.
Before:
<head>
<title>Title</title>
<title>Title</title>
</head>
<body>
<a>Link</a>
</body>
After:
# Output printed to the terminal
There are ...
yarn add -D posthtml-lint
# OR
npm i posthtml-lint
const fs = require('fs');
const posthtml = require('posthtml');
const { lint } = require('posthtml-lint');
const html = fs.readFileSync('./index.html');
posthtml()
.use(lint())
.process(html)
.then(result => fs.writeFileSync('./after.html', result.html));
| Name | Kind | Description |
|---|---|---|
noDuplicateIds | boolean (default true) | Disallow duplicate ids |
noDuplicateTags | boolean (default true) | Disallow duplicate occurrences of the html, head, title and body tags |
noEmptyTags | boolean (default true) | Disallow empty tags for tags that are not self-closing |
noMissingAttributes | boolean (default true) | Disallow tags with missing required attributes. |
See PostHTML Guidelines and contribution guide.
0.1.1 - 2019-09-20
Upgrade posthtml version from 0.14 to 0.16
Refactor typings
FAQs
PostHTML plugin to lint static markup
The npm package posthtml-lint receives a total of 0 weekly downloads. As such, posthtml-lint popularity was classified as not popular.
We found that posthtml-lint 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.