Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including xpath2css with all npm packages installed. Try it out:

var xpath2css = require("xpath2css")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

xpath2css v0.6.2

The simplest XPATH expression to CSS/jQuery selector conversion tool

xpath2css

The simplest XPATH expression to CSS/jQuery selector conversion tool.

Install

$ npm install --save xpath2css

Usage

var xpath2css = require('xpath2css');

console.log(xpath2css(process.argv[2]));

Credits

Original Idea: Oleksandr Knyga http://stackoverflow.com/questions/15731332/how-to-convert-xpath-to-css#18421383
Tests & Samples: Jonathan Persson https://github.com/jonathanp/xpath-to-css.git
Maintainer: Roman Rybalko https://github.com/roman-rybalko/xpath2css

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free