UNPKG

@eslint/css-tree

Version:

A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations

17 lines (14 loc) 346 B
'use strict'; const media = { parse: { prelude() { return this.createSingleNodeList( this.MediaQueryList() ); }, block(nested = false, { allowNestedRules = false } = {}) { return this.Block(nested, { allowNestedRules }); } } }; module.exports = media;