1.0.0 • Published 5 years ago

lildeck v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

lildeck

bundle size npm downloads

an NPM package that keeps track of all the cards in a single deck (short for little deck)

Installation

npm i lildeck

Usage

const Deck = require('lildeck');

Documentation

Deck.draw()

  • draws a random card from the deck
  • removes that card from the deck (so it will not be drawn again)
  • returns card {suit, rank, str, val}

Deck.pickup()

  • refills the deck to the standard 52-count
  • returns nothing