Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.08 KB

File metadata and controls

37 lines (25 loc) · 1.08 KB

xpath-to-css-template-string-tag

node version npm version downloads count license

🔨 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