Here is few basic functionality for a card game like shuffle, draw etc
npm install card_deck --save
const Deck = require('card_deck');
let deck = new Deck();
var newDeck = deck.shuffle(); // It will return an array of 52 cards (shuffled)
var draw = deck.draw(5); // It will return 5 random card from the existing deck.
var newDeck = deck.add(3); // It will return 52 * 3 shuffled cards.
var leftOutCards = deck.left(); // Get left out cards after draw