JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 279
  • Score
    100M100P100Q61246F
  • License MIT

Professional AI Tarot reading library powering Tarotap.com/en - Complete 78-card Tarot deck with AI-powered readings and spreads

Package Exports

  • tarotap
  • tarotap/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tarotap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tarotap - Tarot Card Library

Complete 78-card Tarot deck library powering Tarotap.com

Features

  • Complete 78 tarot cards (22 Major Arcana + 56 Minor Arcana)
  • Random card drawing
  • Search cards by name or ID
  • Filter by Major/Minor Arcana and suits
  • Zero dependencies

Installation

npm install tarotap

Usage

import { getRandomCard, drawCards, getCardById, getMajorArcana, TarotCard } from 'tarotap';

// Get a random card
const card: TarotCard = getRandomCard();
console.log(card.name);

// Draw multiple cards
const cards: TarotCard[] = drawCards(3);

// Get specific card
const fool: TarotCard | null = getCardById('the-fool');

// Get Major Arcana only
const majorArcana: TarotCard[] = getMajorArcana();

CommonJS:

const tarotap = require('tarotap');
const card = tarotap.getRandomCard();

API

  • getAllCards() - Get all 78 cards
  • getCardById(id) - Get card by ID
  • getRandomCard() - Get random card
  • drawCards(count) - Draw multiple cards
  • getMajorArcana() - Get Major Arcana cards
  • getMinorArcana() - Get Minor Arcana cards
  • getCardsBySuit(suit) - Get cards by suit
  • searchCards(query) - Search cards

Card Format

{
  "id": "the-fool",
  "name": "The Fool"
}

Live Demo

Try it at Tarotap.com

License

MIT


Made with ❤️ by the Tarotap Team - Bringing ancient wisdom to the digital age