PHP 7.4.33
Preview: index.js Size: 594 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/tailwindcss/src/value-parser/index.js
var parse = require('./parse')
var walk = require('./walk')
var stringify = require('./stringify')

function ValueParser(value) {
  if (this instanceof ValueParser) {
    this.nodes = parse(value)
    return this
  }
  return new ValueParser(value)
}

ValueParser.prototype.toString = function () {
  return Array.isArray(this.nodes) ? stringify(this.nodes) : ''
}

ValueParser.prototype.walk = function (cb, bubble) {
  walk(this.nodes, cb, bubble)
  return this
}

ValueParser.unit = require('./unit')

ValueParser.walk = walk

ValueParser.stringify = stringify

module.exports = ValueParser

Directory Contents

Dirs: 0 × Files: 8
Name Size Perms Modified Actions
4.16 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
594 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.05 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
7.83 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
198 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.09 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.17 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
395 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).