Skip to content

🔨 Convert XPath to Selector as Tagged template literal

Notifications You must be signed in to change notification settings

piecioshka/xpath-to-css-template-string-tag

Repository files navigation

xpath-to-css-template-string-tag

node version npm version downloads count size license github-ci

🔨 Convert XPath to Selector as Tagged template literal

Installation

npm install xpath-to-css-template-string-tag

Usage

const { x } = require('xpath-to-css-template-string-tag');
x`//div[@id="foo"]` // 'div#foo'

Unit tests

npm test

Code coverage

npm run coverage

License

The MIT License @ 2018