MCPcopy
hub / github.com/postcss/autoprefixer / stringify

Method stringify

lib/transition.js:308–326  ·  view source on GitHub ↗

* Return properties string from array

(params)

Source from the content-addressed store, hash-verified

306 * Return properties string from array
307 */
308 stringify(params) {
309 if (params.length === 0) {
310 return ''
311 }
312 let nodes = []
313 for (let param of params) {
314 if (param[param.length - 1].type !== 'div') {
315 param.push(this.div(params))
316 }
317 nodes.push(...param)
318 }
319 if (nodes[0].type === 'div') {
320 nodes = nodes.slice(1)
321 }
322 if (nodes[nodes.length - 1].type === 'div') {
323 nodes = nodes.slice(0, -1)
324 }
325 return parser.stringify({ nodes })
326 }
327}
328
329module.exports = Transition

Callers 15

addMethod · 0.95
removeMethod · 0.95
stringifyFunction · 0.80
loadPrefixesFunction · 0.80
normalizeMethod · 0.80
processMethod · 0.80
transformRepeatFunction · 0.80
prefixTrackValueFunction · 0.80
parseTemplateFunction · 0.80
getGridGapFunction · 0.80
normalizeRowColumnFunction · 0.80
colorStopsMethod · 0.80

Calls 1

divMethod · 0.95

Tested by 2

rmFunction · 0.64
cleanFunction · 0.64