Download source/scripts/vendor.mjs from CladeTeam/ouroboros: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/spaces/CladeTeam/ouroboros/resolve/main/source/scripts/vendor.mjs
- Command line
-
hf download hf://spaces/CladeTeam/ouroboros/source/scripts/vendor.mjs
-
curl -L -o vendor.mjs https://huggingface.co/spaces/CladeTeam/ouroboros/resolve/main/source/scripts/vendor.mjs
566 Bytes
| import { mkdirSync, copyFileSync, readFileSync, writeFileSync, existsSync } from 'node:fs'; | |
| import { gzipSync } from 'node:zlib'; | |
| mkdirSync('public/vendor', { recursive: true }); | |
| copyFileSync('node_modules/3dmol/build/3Dmol-min.js', 'public/vendor/3Dmol-min.js'); | |
| copyFileSync('node_modules/3dmol/LICENSE', 'public/vendor/3Dmol-LICENSE.txt'); | |
| for (const name of ['atlas-map', 'atlas-preview']) { | |
| if (existsSync(`public/data/${name}.json`)) { | |
| writeFileSync(`public/data/${name}.json.gz`, gzipSync(readFileSync(`public/data/${name}.json`), { level: 9 })); | |
| } | |
| } | |