Download tools/patch-changelogs.js from Mrkiti/Mexa: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/spaces/Mrkiti/Mexa/resolve/main/tools/patch-changelogs.js
- Command line
-
hf download hf://spaces/Mrkiti/Mexa/tools/patch-changelogs.js
-
curl -L -o patch-changelogs.js https://huggingface.co/spaces/Mrkiti/Mexa/resolve/main/tools/patch-changelogs.js
243 Bytes
| ; | |
| const fs = require("fs"); | |
| function nextSection(lines, from) { | |
| for (let i = from + 1; i < lines.length; i++) { | |
| if (/^## \[/.test(lines[i])) return i; | |
| } | |
| return lines.length; | |
| } | |
| console.log("PATCH SCRIPT LOADED SAFELY"); | |