{"library":"xpath-to-css","type":"library","category":null,"description":"xpath-to-css is a JavaScript utility package designed to translate XPath expressions into equivalent CSS selectors. Originally conceived in Python for the `cssify` project by santiycr and later adapted to a JavaScript gist by Dither, this package by Jonathan Svenheden provides an npm-published, ES2015 and CommonJS-compatible solution. It is currently at version 1.2.0, with a release cadence that is likely infrequent, reflecting its stable utility nature rather than active feature development, given its last update was over two years ago. Its core differentiation lies in providing a readily accessible and battle-tested conversion tool for a specific web scraping and automation need, handling various common XPath patterns like ID, class, attribute, and positional selectors. Developers leverage it to bridge between systems that prefer CSS selectors (e.g., Playwright, Puppeteer) and sources that provide XPath (e.g., some browser developer tools, legacy systems).","language":"javascript","status":"active","version":"1.2.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install xpath-to-css","imports":["import xPathToCss from 'xpath-to-css';","const xPathToCss = require('xpath-to-css');"]},{"cmd":"yarn add xpath-to-css","imports":[]},{"cmd":"pnpm add xpath-to-css","imports":[]}],"homepage":null,"github":"https://github.com/svenheden/xpath-to-css","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/xpath-to-css","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/xpath-to-css/compatibility"}}