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

0.1.0 • Public • Published

Koalafied Typescript

by @angrykoala

Tests if a string is a xPath.

Warning: This package does not provide full guarantee that the xPath is valid. This package is intended for code trying to check if a string is an xPath selector or css selector.

const isXPath=require('is-xpath');
 
isXPath("/p"); // true
isXPath(".p"); // false

License

This projects is under GPL-3.0 License

Readme

Keywords

Package Sidebar

Install

npm i is-xpath

Weekly Downloads

1

Version

0.1.0

License

GPL-3.0

Unpacked Size

37.2 kB

Total Files

6

Last publish

Collaborators

  • angrykoala