The vlt query syntax engine.
Usage
import { Query } from '@vltpkg/query'
const query = new Query({ nodes, specOptions, securityArchive })const res = await query.search(':root > *')
Examples
Querying nodes from a local node_modules
folder.
import { actual } from '@vltpkg/graph'import { Query } from '@vltpkg/query'
const specOptions = { registry: 'https://registry.npmjs.org',}const graph = await actual.load({ projectRoot: process.cwd() })const query = new Query({ graph, specOptions })const res = await query.search(':root > *')