getelementbypath
v1.0.2
Published
[](https://app.codeship.com/projects/369210)
Readme
getElementByPath
Installation
npm i getElementByPathUsage
TypeScript / es6
import { mapElement } from "getElementByPath";
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