New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

c2x

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c2x

A simple CLI tool for converting a CSS selector to XPath

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

C2X

A simple CLI tool for converting a CSS selector to XPath

Install: $ npm install -g c2x

Run:

$ c2x .class
  XPATH:  .//*[contains(concat(' ', normalize-space(./@class), ' '), ' class ')]

Or:

$ c2x
Welcome to the C2X CLI tool for converting CSS to XPATH :)

Insert valid CSS selector below, or type 'quit' to stop:
.class
XPATH:  .//*[contains(concat(' ', normalize-space(./@class), ' '), ' class ')]


Insert valid CSS selector:

#id
XPATH:  .//*[./@id = 'id']


Insert valid CSS selector:

)invalid

Invalid css selector! try again!

Insert valid CSS selector:

quit

Bye n00b

Keywords

xpath

FAQs

Package last updated on 30 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts