mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
12 lines
300 B
TypeScript
12 lines
300 B
TypeScript
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||
|
|
||
|
import { evaluate, instantiate, load } from "./utils.ts";
|
||
|
|
||
|
async function main(args: string[]): Promise<void> {
|
||
|
const text = await load(args);
|
||
|
const result = evaluate(text);
|
||
|
instantiate(...result);
|
||
|
}
|
||
|
|
||
|
main(Deno.args);
|