xpath-analyzer
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

xpath-analyzer

Build Status Code Climate Test Coverage

An analyzer / parser for XPath 1.0 expressions.

Installation

The package can be installed with npm.

$ npm install xpath-analyzer

Usage (ES modules)

import XPathAnalyzer from "xpath-analyzer";
 
let analyzer = new XPathAnalyzer("1 + 1");
 
analyzer.parse();
 
// { type: 'additive',
//   lhs: { type: 'number', number: 1 },
//   rhs: { type: 'number', number: 1 } }

Usage (CommonJS)

var XPathAnalyzer = require("xpath-analyzer").default;
 
var analyzer = new XPathAnalyzer("1 + 1");
 
analyzer.parse();
 
// { type: 'additive',
//   lhs: { type: 'number', number: 1 },
//   rhs: { type: 'number', number: 1 } }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.1
    1
    • latest

Version History

Package Sidebar

Install

npm i xpath-analyzer

Weekly Downloads

44

Version

3.0.1

License

MIT

Unpacked Size

43.6 kB

Total Files

6

Last publish

Collaborators

  • badeball