Spaces:
Sleeping
Sleeping
Download src/node_modules/clean-css/lib/options/plugins.js from PierreRouanet/gstreamer_test: direct link, hf CLI and curl.
- Browser
- Download file 727 Bytes
-
https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/clean-css/lib/options/plugins.js
- Command line
-
hf download hf://spaces/PierreRouanet/gstreamer_test/src/node_modules/clean-css/lib/options/plugins.js
-
curl -L -o plugins.js https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/clean-css/lib/options/plugins.js
727 Bytes
| function pluginsFrom(plugins) { | |
| var flatPlugins = { | |
| level1Value: [], | |
| level1Property: [], | |
| level2Block: [] | |
| }; | |
| plugins = plugins || []; | |
| flatPlugins.level1Value = plugins | |
| .map(function(plugin) { return plugin.level1 && plugin.level1.value; }) | |
| .filter(function(plugin) { return plugin != null; }); | |
| flatPlugins.level1Property = plugins | |
| .map(function(plugin) { return plugin.level1 && plugin.level1.property; }) | |
| .filter(function(plugin) { return plugin != null; }); | |
| flatPlugins.level2Block = plugins | |
| .map(function(plugin) { return plugin.level2 && plugin.level2.block; }) | |
| .filter(function(plugin) { return plugin != null; }); | |
| return flatPlugins; | |
| } | |
| module.exports = pluginsFrom; | |