@chancejs/coin
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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'

Dependents (0)

Package Sidebar

Install

npm i @chancejs/coin

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.38 kB

Total Files

18

Last publish

Collaborators

  • victorquinn