epiphany/node_modules/stylelint/lib/utils/rawNodeString.js
2023-12-09 22:48:07 -08:00

20 lines
325 B
JavaScript

'use strict';
/**
* Stringify PostCSS node including its raw "before" string.
*
* @param {import('postcss').Node} node
*
* @returns {string}
*/
module.exports = function rawNodeString(node) {
let result = '';
if (node.raws.before) {
result += node.raws.before;
}
result += node.toString();
return result;
};