feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

21
node_modules/copy-paste/platform/win32.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
const iconv = require("iconv-lite");
const path = require("node:path");
const vbsPath = path.join(__dirname, ".\\fallbacks\\paste.vbs");
const paste = { command: "cscript", args: ["/Nologo", vbsPath] };
paste.full_command = [paste.command, paste.args[0], `"${vbsPath}"`].join(" ");
exports.copy = { command: "clip", args: [] };
exports.paste = paste;
exports.encode = (str) => iconv.encode(str, "utf16le");
exports.decode = (chunks) => {
const data = Array.isArray(chunks) ? chunks : [chunks];
let b64 = iconv.decode(Buffer.concat(data), "cp437");
b64 = b64.substring(0, b64.length - 2); // Chops off extra "\r\n"
// remove bom and decode
return Buffer.from(b64, "base64").subarray(3).toString("utf-8");
};