1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:27:23 -04:00
notes/node_modules/stylelint/lib/utils/rawNodeString.js
Patrick Marsceill b7b0d0d7bf
Initial commit
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
}