Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden Lamb committed Apr 7, 2021
1 parent 36bdc07 commit fb2fa0d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2>Installation</h2>
<pre><code class="language-Bash"><span style="color: #000000">npm install --save binlingo</span>
</code></pre>
<p>For use in the browser without a bundler, include this script tag in your HTML.</p>
<pre><code class="language-HTML"><span style="color: #800000">&lt;script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">&quot;https://unpkg.com/binlingo@2.0.0/dist/binlingo.js&quot;</span><span style="color: #800000">&gt;&lt;/script&gt;</span>
<pre><code class="language-HTML"><span style="color: #800000">&lt;script</span><span style="color: #000000FF"> </span><span style="color: #FF0000">src</span><span style="color: #000000FF">=</span><span style="color: #0000FF">&quot;https://unpkg.com/binlingo@2.0.1/dist/binlingo.js&quot;</span><span style="color: #800000">&gt;&lt;/script&gt;</span>
</code></pre>
<a href="#usage" id="usage" style="color: inherit; text-decoration: none;">
<h2>Usage</h2>
Expand All @@ -83,7 +83,7 @@ <h2>Usage</h2>
<span style="color: #AF00DB">import</span><span style="color: #000000"> { </span><span style="color: #001080">Reader</span><span style="color: #000000">, </span><span style="color: #001080">Writer</span><span style="color: #000000"> } </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;binlingo&#039;</span>

<span style="color: #008000">// deno</span>
<span style="color: #AF00DB">import</span><span style="color: #000000"> { </span><span style="color: #001080">Reader</span><span style="color: #000000">, </span><span style="color: #001080">Writer</span><span style="color: #000000"> } </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;https://deno.land/x/binlingo@2.0.0/mod.ts&#039;</span>
<span style="color: #AF00DB">import</span><span style="color: #000000"> { </span><span style="color: #001080">Reader</span><span style="color: #000000">, </span><span style="color: #001080">Writer</span><span style="color: #000000"> } </span><span style="color: #AF00DB">from</span><span style="color: #000000"> </span><span style="color: #A31515">&#039;https://deno.land/x/binlingo@2.0.1/mod.ts&#039;</span>

<span style="color: #008000">// in the browser</span>
<span style="color: #0000FF">const</span><span style="color: #000000"> { </span><span style="color: #0070C1">Reader</span><span style="color: #000000">, </span><span style="color: #0070C1">Writer</span><span style="color: #000000"> } = </span><span style="color: #001080">window</span><span style="color: #000000">.</span><span style="color: #001080">Binlingo</span>
Expand Down Expand Up @@ -141,10 +141,9 @@ <h2>Usage</h2>
<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">reader</span><span style="color: #000000">.</span><span style="color: #795E26">readZTStringUTF8</span><span style="color: #000000">()) </span><span style="color: #008000">// outputs &quot;hello world&quot;</span>
<span style="color: #001080">console</span><span style="color: #000000">.</span><span style="color: #795E26">log</span><span style="color: #000000">(</span><span style="color: #001080">reader</span><span style="color: #000000">.</span><span style="color: #795E26">readZTStringUCS2</span><span style="color: #000000">()) </span><span style="color: #008000">// outputs &quot;hello world ☺&quot;</span>
</code></pre>
<a href="#documentation" id="documentation" style="color: inherit; text-decoration: none;">
<h2><a href="https://doc.deno.land/https/deno.land/x/binlingo/mod.ts">Documentation</a></h2>
<a href="#api-documentation" id="api-documentation" style="color: inherit; text-decoration: none;">
<h2><a href="https://octavetoast.github.io/binlingo">API Documentation</a></h2>
</a>
<p>This module has first-class Deno support, documentation will always be available at <a href="https://doc.deno.land/https/deno.land/x/binlingo/mod.ts">doc.deno.land</a>.</p>
</div>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
Expand Down

0 comments on commit fb2fa0d

Please sign in to comment.