Files
notes/node_modules/stylelint/lib/utils/rawNodeString.js
T
2017-03-09 13:16:08 -05:00

15 lines
279 B
JavaScript

/* @flow */
"use strict"
/**
* Stringify PostCSS node including its raw "before" string.
*/
module.exports = function (node/*: Object*/)/*: string*/ {
let result = ""
if (node.raws.before) {
result += node.raws.before
}
result += node.toString()
return result
}