This is a practicing npm package. Please do not use this package in production.
Installation
npm i --save code-challenge-seo-linter
Usage
const SeoLinter = ; const seoLinterInstance = "customizeRulesFolder": __dirname + "/helps" "runStartsWithOnly": "inputTarget": "test/index.html" "outputTarget": ""; seoLinterInstance;
Description
-
You can test your HTML with the
inputTarget
parameter, or pass a readable stream toexec()
method.// ...const Readable = Readable;const rs = ;rs;rs;rs;seoLinterInstance;
-
Put your customize seo rules in the
customizeRulesFolder
, and start with '08' (01~07 are used for basic rules). And filename should follow '08_{description}.js' this pattern. Your customize javascript rules should follow the response format :module {returntrueoutput: `you got error`;}; -
If you don't want to run all the rules, put the rule sequence into the
runStartsWithOnly
array. For example :"runStartsWithOnly": ["01", "08", "03"]
. -
Keep
outputTarget
empty and get the response thru console, or give it a writeable file path.