UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

11 lines (10 loc) • 236 B
/** * Stringify PostCSS node including its raw "before" string. * * @param {import('postcss').Node} node * * @returns {string} */ export default function rawNodeString(node) { return (node.raws.before ?? '') + node.toString(); }