Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

xpath-to-css-template-string-tag

1.0.1 • Public • Published

xpath-to-css-template-string-tag

npm version downloads count travis dependencies

📒 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

Use Jasmine to setup unit test:

npm test

Code coverage

Check code coverage with Istanbul:

npm run coverage

License

The MIT License @ 2018

install

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

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability