The Dependency Selector Syntax (DSS) parser
npm install @vltpkg/dss-parserThe Dependency Selector Syntax parser used by the vlt client.
Uses
postcss-selector-parser
to parse a selector string into an AST.
``js
import { parse } from '@vltpkg/dss-parser'
// Parse a selector string into an AST
const ast = parse(':root > *')
``