
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Unofficial Node.js wrapper for Nu HTML Checker
Run
yarn add vnu
or
npm install vnu
(async () => {
const { vnu } = require("vnu"); // Or import { vnu } from "vnu";
const result1 = await vnu("https://example.com/", {
"errors-only": true,
});
const result2 = await vnu("./example.html", {
"asciiquotes": true,
});
const result3 = await vnu(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Invalid HTML</title>
</head>
<body>
<center>This HTML is invalid</center>
<img
src="https://example.com/example.jpg"
border="0">
</body>
</html>
`, {
"user-agent": "Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Mobile Safari/537.36",
});
})();
const result = await vnu(target, options);
A URL or filepath (absolute or relative) to validate.
The options object supports most of the options supported in The Nu Markup Checker. See also: http://validator.github.io/validator/#options
options.asciiquotesType: Boolean
Default: false
options.errors-onlyType: Boolean
Default: false
options.filterfileType: String
Default: undefined
options.filterpatternType: String
Default: undefined
options.skip-non-cssType: Boolean
Default: false
options.cssType: Boolean
Default: false
options.skip-non-svgType: Boolean
Default: false
options.svgType: Boolean
Default: false
options.skip-non-htmlType: Boolean
Default: false
options.htmlType: Boolean
Default: false
options.no-streamType: Boolean
Default: false
options.also-check-cssType: Boolean
Default: false
options.also-check-svgType: Boolean
Default: false
options.user-agentType: String
Default: "Validator.nu/LV"
options.no-langdetectType: Boolean
Default: false
exit-zero-alwaysformathelpWerrorverboseversion[
{
type: "error",
url: "https://amazon.co.jp",
lastLine: 4,
lastColumn: 55,
firstColumn: 1,
message: "Bad value “x-dns-prefetch-control” for attribute “http-equiv” on element “meta”.",
extract: "ation -->\n<meta http-equiv='x-dns-prefetch-control' content='on'><link ",
hiliteStart: 10,
hiliteLength: 55
},
{
type: "error",
url: "https://amazon.co.jp",
lastLine: 67,
lastColumn: 108859,
message: "CSS: “color”: Parse Error.",
extract: "with_important()}.a-button-pri",
hiliteStart: 15,
hiliteLength: 1
},
// ...
]
Copyright 2018 Jumpei Ogawa
This software is released under the MIT License. See LICENSE.
This software is fork of gulp-html by Daijiro Wachi
FAQs
Unofficial Node.js wrapper for Nu HTML Checker
The npm package vnu receives a total of 26 weekly downloads. As such, vnu popularity was classified as not popular.
We found that vnu 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.