poker-deck

Basic french deck of poker cards.

Usage no npm install needed!

<script type="module">
  import pokerDeck from 'https://cdn.skypack.dev/poker-deck';
</script>

README

poker-deck

Basic french deck of poker cards.

The module exports an array of objects with rank, and type card's properties.

Note that the array was frozen using Object.freeze method. It can be used in the following way:

const deck = require("poker-deck");
const gameDeck = Array.from(deck);
// gameDeck is not frozen