Spaces:
Running
Running
Download node_modules/postcss/lib/declaration.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss/lib/declaration.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/postcss/lib/declaration.js
-
curl -L -o declaration.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss/lib/declaration.js
495 Bytes
| let Node = require('./node') | |
| class Declaration extends Node { | |
| constructor(defaults) { | |
| if ( | |
| defaults && | |
| typeof defaults.value !== 'undefined' && | |
| typeof defaults.value !== 'string' | |
| ) { | |
| defaults = { ...defaults, value: String(defaults.value) } | |
| } | |
| super(defaults) | |
| this.type = 'decl' | |
| } | |
| get variable() { | |
| return this.prop.startsWith('--') || this.prop[0] === '$' | |
| } | |
| } | |
| module.exports = Declaration | |
| Declaration.default = Declaration | |