Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

xpath-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xpath-analyzer

An analyzer / parser for XPath 1.0 expressions.

latest
Source
npmnpm
Version
3.0.1
Version published
Weekly downloads
40
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

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 } }

FAQs

Package last updated on 21 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts