recheck-web-js
This is the JavaScript behind recheck-web and the corresponding Chrome extension. What it does is collect all attributes of all elements of the rendered DOM. This can then be collected by recheck-web or sent to retest.de.
Installation
npm i recheck-web-js
Usage
TypeScript / es6
import { mapElement } from "recheck-web-js";
var htmlNode = document.getElementsByTagName("html")[0];
var html = transform(htmlNode);
var allElements = mapElement(htmlNode, "//html[1]", {
"//html[1]" : html
});
console.log(allElements);
Test
npm run test
Release
The release of npm module and webjar is performed on travis. To trigger a build update the version in npm files and create a tag with:
npm version patch && git push --tags
If you want to release a minor
version use:
npm version minor && git push --tags