carg
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

carg

currency amount random generator

Usage

import carg from 'carg';
// var carg = require('carg');

// a random USD amount between 10 and 20 dollars
let amount = carg.amount('USD', 10, 20);

// a random EUR amount roughly between 8.357954 and 16.715908 (10 and 20 US Dollars)
amount = carg.amount('EUR', 10, 20);

Development setup

# make sure env var NPM_TOKEN exists --- no need to be valid value
# e.g. 
# echo 'export NPM_TOKEN=TOKEN' > ~/.bashrc
# source ~/.bashrc

yarn
yarn build
yarn test

/carg/

    Package Sidebar

    Install

    npm i carg

    Weekly Downloads

    1

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    26.9 kB

    Total Files

    45

    Last publish

    Collaborators

    • phq