Skip to content

NightlyCommit/d-n

Repository files navigation

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