README
Installing
sudo npm i apple-price-rounder --save
Using
var R = require('apple-price-rounder');
R(3.55)
.then((value) => {console.log('Output', value);})
.catch((err) => {console.log('Error', err);})
Running tests
npm test
Apple prices is different, We can change
<script type="module">
import applePriceRounder from 'https://cdn.skypack.dev/apple-price-rounder';
</script>
sudo npm i apple-price-rounder --save
var R = require('apple-price-rounder');
R(3.55)
.then((value) => {console.log('Output', value);})
.catch((err) => {console.log('Error', err);})
npm test