@carddb/client
v0.1.5
Published
CardDB API client - shared client logic for browser and Node.js
Downloads
928
Maintainers
Readme
@carddb/client
Shared client logic for CardDB JavaScript clients.
Note: This is an internal package. You should use
@carddb/nodeor@carddb/browserinstead.
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, and Record 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
