<p dir="auto">One of the best features of Deno is allowing us to write JavaScript that both run at (modern) browsers and server side without building or other works. But if we write in TypeScript, that's useless for Browsers. (That's why I'd like to write codes in JS rather then TS.)</p>
<p dir="auto">If Deno provide an API that accepts TS codes, compile them with inside compiler, and returns JS codes. We can build a web server to respond JS modules compiled from TS. Then the TS codes are cross-platform too.</p>
<p dir="auto">Here is a suggestion:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Deno.compile( code:string, options?:CompileOption  ):Promise&lt;string&gt;
Deno.compileFile( filename:string, options?:CompileOption  ):Promise&lt;string&gt;
Deno.compileSync( code:string, options?:CompileOption  ):string
Deno.compileFileSync( filename:string, options?:CompileOption  ):string"><pre class="notranslate"><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span> <span class="pl-s1">code</span>:<span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>?:<span class="pl-smi">CompileOption</span>  <span class="pl-kos">)</span>:<span class="pl-smi">Promise</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-c1">&gt;</span>
<span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compileFile</span><span class="pl-kos">(</span> <span class="pl-s1">filename</span>:string<span class="pl-kos">,</span> <span class="pl-s1">options</span>?:<span class="pl-smi">CompileOption</span>  <span class="pl-kos">)</span>:<span class="pl-smi">Promise</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-c1">&gt;</span>
<span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compileSync</span><span class="pl-kos">(</span> <span class="pl-s1">code</span>:<span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>?:<span class="pl-smi">CompileOption</span>  <span class="pl-kos">)</span>:<span class="pl-s1">string</span>
<span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compileFileSync</span><span class="pl-kos">(</span> <span class="pl-s1">filename</span>:string<span class="pl-kos">,</span> <span class="pl-s1">options</span>?:<span class="pl-smi">CompileOption</span>  <span class="pl-kos">)</span>:<span class="pl-s1">string</span></pre></div>
<p dir="auto">The <code class="notranslate">console.log</code> and <code class="notranslate">console.table</code> functions don't use colors when displaying objects. Here is an example for the <code class="notranslate">console.log</code> example.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13885008/81581347-e7286c00-93ae-11ea-91e2-e0c706773d29.png"><img src="https://user-images.githubusercontent.com/13885008/81581347-e7286c00-93ae-11ea-91e2-e0c706773d29.png" alt="image" style="max-width: 100%;"></a></p>