Installation¶
Browser¶
The easiest way to use the latest version of dlite
is with a script tag and using the unpkg
CDN.
Warning
Make sure to specify module
for the script
element’s type
.
<script type="module">
import Dlite from '//unpkg.com/dlite';
</script>
You can also specify a version using the unpkg
CDN to minimize the effect of breaking changes.
<script type="module">
import Dlite from '//unpkg.com/dlite@0.16.1';
</script>
NPM¶
You can also install via NPM.
npm install dlite
Then, import dlite
in your JavaScript.
import Dlite from 'dlite';