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

1.2.2 • Public • Published

xpath-lexer

Build Status Code Climate Test Coverage

A lexer for XPath 1.0 expressions.

Installation

The package can be installed with npm.

$ npm install xpath-lexer

Usage

var XPathLexer = require("xpath-lexer");
 
var lexer = new XPathLexer("//foo:bar[@id='baz']");
 
lexer.next() // => "//"
lexer.next() // => "foo:bar"
lexer.next() // => "["
lexer.next() // => "@"
lexer.next() // => "id"
lexer.next() // => "="
lexer.next() // => "'baz'"
lexer.next() // => "]"

Readme

Keywords

none

Package Sidebar

Install

npm i xpath-lexer

Weekly Downloads

38

Version

1.2.2

License

MIT

Unpacked Size

7.62 kB

Total Files

6

Last publish

Collaborators

  • badeball