Skip to content

Commit

Permalink
deploy: dcedaf7
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Aug 29, 2024
1 parent 267e03c commit 8d6d1f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://michaelcurrin.github.io/dev-resources/feed.xml" rel="self" type="application/atom+xml" /><link href="https://michaelcurrin.github.io/dev-resources/" rel="alternate" type="text/html" /><updated>2024-08-29T14:49:01+00:00</updated><id>https://michaelcurrin.github.io/dev-resources/feed.xml</id><title type="html">Dev Resources</title><subtitle>Links to tutorials/articles/docs/Wikipedia about programming languages, developers tools and services</subtitle><author><name>Michael Currin</name></author></feed>
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://michaelcurrin.github.io/dev-resources/feed.xml" rel="self" type="application/atom+xml" /><link href="https://michaelcurrin.github.io/dev-resources/" rel="alternate" type="text/html" /><updated>2024-08-29T15:00:38+00:00</updated><id>https://michaelcurrin.github.io/dev-resources/feed.xml</id><title type="html">Dev Resources</title><subtitle>Links to tutorials/articles/docs/Wikipedia about programming languages, developers tools and services</subtitle><author><name>Michael Currin</name></author></feed>
17 changes: 15 additions & 2 deletions resources/javascript/cdns/esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,24 @@ <h3>Key links</h3>

<p>The name of the site of course reflects ES Modules aka ESM.</p>

<h2 id="format">Format</h2>

<h3 id="basic">Basic</h3>

<p>URL format: <code class="language-plaintext highlighter-rouge">https://esm.run/PACKAGE</code></p>

<p>e.g. <code class="language-plaintext highlighter-rouge">https://esm.run/d3</code> redirects to <code class="language-plaintext highlighter-rouge">https://cdn.jsdelivr.net/npm/d3/+esm</code>.</p>
<p>e.g. <a href="https://esm.run/canvas-confetti">https://esm.run/canvas-confetti</a></p>

<p>That redirects to <code class="language-plaintext highlighter-rouge">https://cdn.jsdelivr.net/npm/canvas-confetti/+esm</code>.</p>

<h3 id="lock-the-package-version">Lock the package version</h3>

<p>URL format: <code class="language-plaintext highlighter-rouge">https://esm.run/PACKAGE@VERSION</code></p>

<p>e.g. <a href="https://esm.sh/canvas-confetti@1.6.0">https://esm.sh/canvas-confetti@1.6.0</a></p>

<p>The result says it was bundled with Rollup and Terser.</p>
<div class="language-javascript highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">import</span> <span class="nx">confetti</span> <span class="k">from</span> <span class="dl">"</span><span class="s2">https://esm.sh/canvas-confetti@1.6.0</span><span class="dl">"</span>
</code></pre></div></div>



Expand Down

0 comments on commit 8d6d1f5

Please sign in to comment.