@nightlycommit/d-n
v1.0.0
Published
n-sided dice, the functional way
Downloads
1
Maintainers
Readme
d-n
n-sided dice, the functional way
Installation
npm install @nightlycommit/d-n
Usage
import {createDice} from "d-n";
const d2 = createDice(2);
d2(); // return an integer greater or equal to 1 and lower or equal to 2
API
Read the documentation for more information.
Contributing
- Fork the main repository
- Code
- Implement tests using tape
- Issue a pull request keeping in mind that all pull requests must reference an issue in the issue queue
License
Apache-2.0 © Eric MORAND