This is a fast, lightweight, no dependency, not so impressive, and completely useless library for Amidakuji ;-)
Install by npm
npm install adima
and use it.
import Adima from 'adima';
const container = document.getElementById('some-container');
const adima = new Adima(container);
adima.init();
<script type="module" >
import Adima from 'https://unpkg.com/adima@latest/dist/index.js';
const container = document.getElementById('some-container');
const adima = new Adima(container);
adima.init();
</script>
Demo page is here
API is here
MIT