JSPM

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

CardDB API client - shared client logic for browser and Node.js

Package Exports

  • @carddb/client

Readme

@carddb/client

Shared client logic for CardDB JavaScript clients.

Note: This is an internal package. You should use @carddb/node or @carddb/browser instead.

Overview

This package provides the core client implementation shared between browser and Node.js packages:

  • CardDBClient: Main client class with resource accessors
  • Connection: HTTP/GraphQL connection handling
  • Configuration: Client configuration management
  • Resources: Publisher, Game, Dataset, Record, Import Format, Import, Export, File, Scan, Scan Template, Deck, and Rule resource classes
  • Cache utilities: Cache key generation and read/write helpers

Usage

This package is used internally by @carddb/browser and @carddb/node. Those packages re-export everything from this package along with platform-specific cache implementations.

// Don't do this:
import { CardDBClient } from '@carddb/client'

// Do this instead:
import { CardDBClient } from '@carddb/node'
// or
import { CardDBClient } from '@carddb/browser'

License

MIT