Skip to content

Commit

Permalink
Deploy sarahdayan/dinero.js to github.com/sarahdayan/dinero.js.git:ma…
Browse files Browse the repository at this point in the history
…ster
  • Loading branch information
traviscibot committed Apr 25, 2018
1 parent fcf7c89 commit e2f969e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ <h3>UMD (browser global)</h3><p>Include Dinero.js in a script tag and access its
&lt;script>
Dinero();
&lt;/script></code></pre><p>You can use an alias if you wish:</p>
<pre class="prettyprint source lang-js"><code>var Money = Dinero</code></pre><h3>CommonJS (Node)</h3><pre class="prettyprint source lang-js"><code>const Dinero = require('dinero.js')</code></pre><h3>AMD (RequireJS, System.js, etc.)</h3><pre class="prettyprint source lang-js"><code>requirejs(['path/to/amd/dinero'], function(Dinero) {
<pre class="prettyprint source lang-js"><code>var Money = Dinero</code></pre><p>Any browser that supports the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl">Internationalization API</a> is compatible with Dinero.js. This means <a href="https://caniuse.com/#feat=internationalization">most browsers</a>, and Internet Explorer 11.</p>
<h3>CommonJS (Node)</h3><pre class="prettyprint source lang-js"><code>const Dinero = require('dinero.js')</code></pre><p>You will need at least Node 6+ <a href="https://nodejs.org/api/intl.html#intl_embed_the_entire_icu_full_icu">with full-icu support</a>.</p>
<h3>AMD (RequireJS, System.js, etc.)</h3><pre class="prettyprint source lang-js"><code>requirejs(['path/to/amd/dinero'], function(Dinero) {
//...
})</code></pre><h3>ES modules (modern browser, Webpack, etc.)</h3><pre class="prettyprint source lang-js"><code>import Dinero from 'path/to/esm/dinero.js'</code></pre><h2>Quick start</h2><p>Dinero.js makes it easy to create, calculate and format monetary values in JavaScript. You can perform arithmetic operations, extensively parse and format them, check for a number of things to make your own development process easier and safer.</p>
<p><strong>Note:</strong> The library is globally available in the docs for you to be able to test it right in the browser console.</p>
Expand Down

0 comments on commit e2f969e

Please sign in to comment.