An adapter for `css-select` to allow querying of `codsen-parser` generated trees.
npm install css-select-codsen-parserAn adapter for css-select to allow querying of codsen-parser generated trees.
```
$ npm install css-select-codsen-parser
To use this adapter, first you must run the AST through prepare.
`js
const parse = require("codsen-parser");
const CSSselect = require("css-select");
const { prepare, adapter } = require("css-select-codsen-parser");
const ast = prepare(
parse(
)
);const nodes = cssSelect("#greeting .name", ast, { adapter });
// => [ { type: 'tag', start: 37, end: 56, value: ''... ]
`API
prepare(ast)
Note: This method modifies the AST directly.
codsen-parser.Returns the same AST.
adapter
css-select` adapter. See documentation on how to use a custom adapter.