mirror of
https://github.com/tauri-apps/deno.git
synced 2026-02-05 03:01:19 +01:00
10 lines
215 B
TypeScript
10 lines
215 B
TypeScript
function args(args: string[]) {
|
|
const map = {};
|
|
for (let i = 0; i < args.length; i++) {
|
|
map[i] = args[i];
|
|
}
|
|
Deno.stdout.write(new TextEncoder().encode(JSON.stringify(map)));
|
|
}
|
|
|
|
args(Deno.args.slice(1));
|