🔨 Convert XPath to Selector as Tagged template literal
npm install xpath-to-css-template-string-tag
const { x } = require('xpath-to-css-template-string-tag');
x`//div[@id="foo"]` // 'div#foo'
npm test
npm run coverage
The MIT License @ 2018
🔨 Convert XPath to Selector as Tagged template literal
npm install xpath-to-css-template-string-tag
const { x } = require('xpath-to-css-template-string-tag');
x`//div[@id="foo"]` // 'div#foo'
npm test
npm run coverage
The MIT License @ 2018
npm i xpath-to-css-template-string-tag
66
1.0.3
MIT
2.76 kB
3