Specht
Installation
$ npm install specht --save
Usage
CLI
$ specht --help Usage: specht [path] [options] Example: specht path/to/start/from \--pattern https://www.jetbrains.com/hub/help/1.0/%s.html \--ignore-file .gitignore \--html-rules svg:xlink:href hub-page-help-link:url \--js-rules getHelpUrlFilter getHelpUrlInSecondParameter:1 \--html-extension .html .htm \--teamcity At least one of --js-rules or --html-rules parameters is required. Will exitwith code 1 otherwise. Options: --pattern Help site pattern, e.g.: https://www.jetbrains.com/hub/help/1.0/%s.html. “%s” placeholder is replaced with parts found by parsers [default: "%s"] --ignore-file Files and directories to ignore, uses .gitgnore format. Relative from path. --html-rules Rules of parsing HTML files, in form of <tag name>:<attribute name>. XML namespaces
Programmatic
See fields descriptions above, however there are no defaults for programmatic usage
; const runner = ; runnerstart rootDir pattern ignoreFile teamcity htmlExtension htmlRules jsExtension jsRules;