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
./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
<script type="module">
import gains from 'https://cdn.skypack.dev/gains';
</script>
./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
npm install && node sample