1.0.0 • Published 3 years ago

@nightlycommit/d-n v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
3 years ago

d-n

NPM version Build Status Coverage percentage

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