node package manager

xpath2css

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