Download source/scripts/inline-kit.mjs from tardumo/Resnomo: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/tardumo/Resnomo/resolve/main/source/scripts/inline-kit.mjs
- Command line
-
hf download hf://spaces/tardumo/Resnomo/source/scripts/inline-kit.mjs
-
curl -L -o inline-kit.mjs https://huggingface.co/spaces/tardumo/Resnomo/resolve/main/source/scripts/inline-kit.mjs
648 Bytes
| import { readFileSync } from "node:fs"; | |
| import { dirname, join } from "node:path"; | |
| import { fileURLToPath } from "node:url"; | |
| const KIT = join(dirname(fileURLToPath(import.meta.url)), "..", "kit"); | |
| const strip = (file) => readFileSync(join(KIT, file), "utf8").replace(/^export /gm, ""); | |
| export function kitScript() { | |
| return strip("iso-kit.mjs"); | |
| } | |
| export function glScript() { | |
| return strip("gl.mjs"); | |
| } | |
| export function turnScript() { | |
| return strip("turn.mjs"); | |
| } | |
| export function fixedScript() { | |
| return strip("turn-fixed.mjs") + "\n" + strip("canvas-painter.mjs"); | |
| } | |
| export function glSharedScript() { | |
| return strip("gl-shared.mjs"); | |
| } | |