Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

xpath2

ilinsky6.2kMIT0.0.1-alpha-2TypeScript support: included

DOM 3 XPath implementation (with XPath 2.0 language support)

xpath, xpath2, xpath 2, dom, xml

readme

xpath2

DOM 3 XPath 2.0 implementation for browsers and node.js based on xpath2.js DOM-agnostic XPath 2 language processor

The xpath2 package API is compatible with the npm xpath package API

Install with npm

npm install xpath2

Run your first query

console.log(xpath2.evaluate("1 + 2"));

outputs

3