How to use @emmetio/css-abbreviation - 2 common examples

To help you get started, we’ve selected a few @emmetio/css-abbreviation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emmetio / emmet / src / stylesheet / snippets.ts View on Github external
function parseValue(value: string): CSSValue[] {
    return parse(value.trim(), opt)[0].value;
}
github emmetio / emmet / src / stylesheet / index.ts View on Github external
export default function parse(abbr: string | CSSAbbreviation, config: Config, snippets = convertSnippets(config.snippets)): CSSAbbreviation {
    if (typeof abbr === 'string') {
        abbr = abbreviation(abbr, { value: !!config.context });
    }

    for (const node of abbr) {
        resolveNode(node, snippets, config);
    }

    return abbr;
}

@emmetio/css-abbreviation

Parses Emmet CSS abbreviation into AST tree

MIT
Latest version published 2 years ago

Package Health Score

71 / 100
Full package analysis

Popular @emmetio/css-abbreviation functions

Similar packages