2.0.1 • Published 5 years ago

playing-card-deck-generator v2.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

Playing Card Deck Generator

Install

To install, simply use the package manager of your choice from the root of your application

$ npm i playing-card-deck-generator

Usage

Import the library into your project using either the Node module system:

const DeckGenerator = require('playing-card-deck-generator')

or the native ESModule system:

import DeckGenerator from 'playing-card-deck-generator'

Resources

DeckGenerator

This component will be used to generate a custom deck of playing cards

generate(suits, values)

This method will actually handle the generating of your custom deck. It accepts an argument for suits which needs to be an Array of Strings. It also accepts an argument for values which also needs to be an Array of Strings.

standardDeck

This component returns a generated deck of standard playing cards in the form of an Array of Strings

2.0.1

5 years ago

2.0.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago