Spaces:
Running
Running
Download node_modules/postcss-value-parser/lib/index.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss-value-parser/lib/index.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/postcss-value-parser/lib/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss-value-parser/lib/index.js
607 Bytes
| 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; | |