How to use Installation

Node

To install for Node projects (e.g., Svelte), run the belwow line in your shell.

  • From GitHub (Latest)
npm install "https://github.com/see-mike-out/erie-web.git#typescript"

Then, you can import Erie like below.

impor * as Erie from 'erie-web';

Browser

Download erie-web.js or erie-web.min.js from the typescript branch of the original repo: [https://github.com/see-mike-out/erie-web].

Have the below imports in your HTML file or wherever it applies to.

<script src="https://cdn.jsdelivr.net/npm/arquero@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vega@5/build-es5/vega.min.js"></script>
<!-- For development -->
<script src="{path}/erie-web.js"></script>
<!-- For production -->
<!-- <script src="{path}/erie-web.min.js"></script>  -->

Write your script.

<script>
  // Erie is the global object.
</script>
© Hyeok Kim