1
0
mirror of https://github.com/thangisme/notes.git synced 2024-09-29 04:06:12 -04:00
notes/node_modules/stylelint/lib/utils/rawNodeString.js

15 lines
279 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
/* @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
}