Spaces:
Paused
Paused
Download node_modules/@plotly/d3/bin/uglify from Leon4gr45/nova-header-nav: direct link, hf CLI and curl.
- Browser
- Download file 890 Bytes
-
https://huggingface.co/spaces/Leon4gr45/nova-header-nav/resolve/main/node_modules/%40plotly/d3/bin/uglify
- Command line
-
hf download hf://spaces/Leon4gr45/nova-header-nav/node_modules/@plotly/d3/bin/uglify
-
curl -L -o uglify https://huggingface.co/spaces/Leon4gr45/nova-header-nav/resolve/main/node_modules/%40plotly/d3/bin/uglify
890 Bytes
| #!/usr/bin/env node | |
| var fs = require("fs"), | |
| uglify = require("uglify-js"); | |
| var filename = process.argv[2], | |
| toplevel = uglify.parse(fs.readFileSync(filename, "utf8"), {filename: filename}), | |
| output = uglify.OutputStream({ascii_only: true}), | |
| compressor = uglify.Compressor(true), | |
| warn = uglify.AST_Node.warn; | |
| uglify.AST_Node.warn = function(s, o) { | |
| if (o.msg === "Accidental global?" && o.name === "d3" && o.line === 1 && !o.col) return; | |
| warn.apply(this, arguments); | |
| }; | |
| toplevel.figure_out_scope(); | |
| toplevel.scope_warnings({ | |
| undeclared: false, | |
| unreferenced: false, | |
| assign_to_global: true, | |
| func_arguments: false, | |
| nested_defuns: false, | |
| eval: false | |
| }); | |
| toplevel = toplevel.transform(compressor); | |
| toplevel.figure_out_scope(); | |
| toplevel.compute_char_frequency(true); | |
| toplevel.mangle_names(true); | |
| toplevel.print(output); | |
| process.stdout.write(output.get()); | |