
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@nickreese/seo-lint
Advanced tools
seo-lint
: A Robust SEO Linter / Checker for Local HTML FilesThis package offers both a CLI and a library to help you with linting HTML for over 50 common SEO issues.
This SEO tool was spun out of Elder.js' plugin called seo-check.
The library exports a Tester
method which returns an object with 2 methods: folder
and test
.
folder
If you have a folder of .html
files you're looking to check for common SEO issues, you just need to specify the folder and seo-lint will recursively check all of the .html files for issues.
const { Tester } = require('./Tester');
const tester = Tester({ siteWide: true, host: 'example.com' });
const results = await tester.folder('public'); // relative to process.cwd()
test
If you have a build process that generates HTML, such as a static site generator, and want to lint that html generated for common SEO issues you can do the following:
const { Tester } = require('./Tester');
const tester = Tester({ host: 'example.com' });
const results = await tester.test(html, relPermalink);
// results will be an object with issues by url and sitewide issues.
$ npm i -g @nickreese/seo-lint
Usage:
seo-lint <dir> [options]
Options
-H
, --host
Set the expected host for internal links. (example.com)-v
, --version
Displays current version-c
, --config
Set a custom config to specify rules.-w
, --write
Location to write a report to a JSON file.CLI config
// const { defaultPreferences, rules } = require('@nickreese/seo-lint');
// available if you want the defaults from the package.
module.exports = {
rules: [],
preferences: {},
writeLocation: `./report.json`, // if this is set it assumes you want the report written.
display: ['errors', 'warnings'],
};
Advanced Example:
$ seo-lint public -H example.com -c seo-lint.config.js -w report.json
These are only checked when Elder.js runs in build mode.
request.permalink
innerText
and innerHTML
are the same. (no
html tags in your title tag)null
undefined
null
undefined
nofollow
index.html
width=device-width, initial-scale=1.0
meta
viewport.Written by Nick Reese. Initially written to audit Elder Guide.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A robust SEO linter for local html files
We found that @nickreese/seo-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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.