1.0.2 • Published 1 year ago

@chancejs/coin v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@chancejs/coin

Note: This is a WIP proof of concept. DO NOT USE YET. I will remove this once it's ready for prime time :)

Installation

Install with npm npm install @chancejs/coin

Install with yarn yarn add @chancejs/coin

Usage

In your code, include it as follows:

CommonJS

// Require
let chance = require('@chancejs/coin');

// Use
console.log(chance.coin()); // will output "heads" or "tails"

ES Module

import * as chance from '@chancejs/coin';

console.log(chance.coin()); // will output "heads" or "tails"

Examples

// usage
chance.coin()

Flip a coin!

chance.coin();
=> 'heads'

chance.coin();
=> 'tails'
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago