Files
ts-scripts/bundles/hello_world.ts
2026-02-08 23:28:09 +08:00

23 lines
745 B
TypeScript

#!/usr/bin/env runts -- --allow-all
import {log, term} from "../libraries/deno-commons-mod.ts";
// deno bundle --allow-import hello_world.ts -o helloworld-bundle-2.bundle.ts
async function main() {
log.success("Hello World!");
console.log(term.auto("\n[bg_white][black]Message:\n"));
console.log(
term.auto(
"[[[[bg_green][bold][red] MESSAGE [///] [green][bold]Hello[//] [red]world[/]. [under] under [/] [bold]BOLD[/]]]]",
),
);
console.log(term.auto("\n[bg_white][black]Prints as:\n"));
console.log(
term.auto(
"[bg_green][bold][red] MESSAGE [///] [green][bold]Hello[//] [red]world[/]. [under] under [/] [bold]BOLD[/]",
),
);
}
main().catch(console.error);