gains

./lib/processTransactions.js contains the meat - an implementation of first in, first-out type of average cost basis method used to calculate profit or loss

Usage no npm install needed!

<script type="module">
  import gains from 'https://cdn.skypack.dev/gains';
</script>

README

gains

./lib/processTransactions.js contains the meat - an implementation of first in, first-out type of average cost basis method used to calculate profit or loss

How to run the sample usage script?

npm install && node sample