{"library":"parsel-js","type":"library","category":null,"description":"Parsel.js is a lightweight and permissive JavaScript library designed for parsing CSS selectors and calculating their specificity. It provides a robust Abstract Syntax Tree (AST) representation of selectors, enabling developers to analyze, manipulate, or traverse selector structures. The current stable version is 1.2.2, with releases occurring relatively frequently, including both patch and minor updates to address bugs and introduce new features like support for relative selector lists. Key differentiators include its minimal footprint and forgiving parsing logic, making it suitable for environments where strict CSS validation might be too restrictive. It also includes built-in functionality for computing the CSS specificity of any given selector.","language":"javascript","status":"active","version":"1.2.2","tags":["javascript","CSS","selectors","typescript"],"install":[{"cmd":"npm install parsel-js","imports":["import { parse } from 'parsel-js';","import { specificity } from 'parsel-js';","import { walk } from 'parsel-js';","const { parse, specificity } = require('parsel-js');"]},{"cmd":"yarn add parsel-js","imports":[]},{"cmd":"pnpm add parsel-js","imports":[]}],"homepage":"https://parsel.verou.me/","github":"https://github.com/LeaVerou/parsel","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/parsel-js","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/parsel-js/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}