Skip to main content
Module

x/sponsor/main.js

The sponsors toolbox gives you Deno super powers in web browsers.
Latest
File
#!/usr/bin/env deno -S --allow-all --unstable
const commands = { "test": await import("./test.js"),};
try { const args = Array.from(Deno.args); if (args.length == 0) { throw new Error(`No command specified`); }
const name = args.shift(); const command = commands[name]; if (!command) { throw new Error(`Unknown command ${name}`); }
command.default(args);} catch (error) { await Deno.writeAll( Deno.stderr, new TextEncoder().encode(`error: ${error.message}`), );}