23 lines
745 B
TypeScript
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);
|