Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChiriVulpes/scryfall-sdk
/ functions
Functions
153 in github.com/ChiriVulpes/scryfall-sdk
⨍
Functions
153
◇
Types & classes
68
↓ 45 callers
Method
byId
(id: string)
src/api/Sets.ts:100
↓ 18 callers
Method
waitForAll
()
src/util/MagicEmitter.ts:74
↓ 15 callers
Method
on
(eventName: string | symbol, listener: Listener)
src/util/EventEmitter.ts:42
↓ 12 callers
Method
byName
(name: string, fuzzy?: boolean)
src/api/Sets.ts:113
↓ 12 callers
Method
search
(query: string, options?: SetSearchOptions)
src/api/Sets.ts:72
↓ 10 callers
Method
collection
(...identifiers: CardIdentifier[])
src/api/Cards.ts:740
↓ 9 callers
Method
queryCard
(apiPath: TOrArrayOfT<string | number | undefined>, query?: { [key: string]: any }, post?: any)
src/api/Cards.ts:749
↓ 8 callers
Method
all
()
src/api/Sets.ts:89
↓ 8 callers
Method
emit
(eventName: string | symbol, ...args: any[])
src/util/EventEmitter.ts:76
↓ 8 callers
Method
map
(mapper: (value: T) => T2)
src/util/MagicEmitter.ts:97
↓ 7 callers
Method
on
(event: string, listener: (...args: any[]) => any)
src/util/MagicEmitter.ts:37
↓ 6 callers
Method
getImageURI
(version: keyof ImageUris)
src/api/Cards.ts:222
↓ 5 callers
Method
byMultiverseId
(id: number)
src/api/Cards.ts:685
↓ 5 callers
Method
bySet
(setCode: string | Set, collectorNumber: string | number, lang?: string)
src/api/Cards.ts:678
↓ 5 callers
Method
isIllegal
* @returns `true` if this card is `not_legal` or `banned` in the given format.
src/api/Cards.ts:601
↓ 5 callers
Method
isLegal
* @returns `true` if this card is `legal` or `restricted` in the given format.
src/api/Cards.ts:594
↓ 4 callers
Method
cancelAfterPage
()
src/util/MagicEmitter.ts:69
↓ 4 callers
Method
getCost
()
src/api/Cards.ts:221
↓ 4 callers
Method
getText
()
src/api/Cards.ts:220
↓ 4 callers
Method
setSymbologyTransformer
(transformer?: string | SymbologyTransformer)
src/api/Cards.ts:650
↓ 3 callers
Method
byCode
(code: string)
src/api/Sets.ts:95
↓ 3 callers
Method
byId
(id: string)
src/api/Cards.ts:673
↓ 3 callers
Method
byMtgoId
(id: number)
src/api/Cards.ts:690
↓ 3 callers
Method
cancel
()
src/util/MagicEmitter.ts:63
↓ 3 callers
Method
definition
(idOrType: string)
src/api/BulkData.ts:109
↓ 3 callers
Function
deleteCacheValue
(cache: ICache)
src/util/Cached.ts:67
↓ 3 callers
Method
emit
(event: string, ...data: any[])
src/util/MagicEmitter.ts:48
↓ 3 callers
Method
generate
(event: string)
src/util/MagicEmitter.ts:104
↓ 3 callers
Method
get
()
src/api/Cards.ts:214
↓ 3 callers
Function
handleCacheGarbageCollection
(reset: boolean)
src/util/Cached.ts:74
↓ 3 callers
Method
query
(apiPath: TOrArrayOfT<string | number | undefined>, query?: { [key: string]: any }, post?: any)
src/util/MagicQuerier.ts:70
↓ 3 callers
Method
querySet
(apiPath: TOrArrayOfT<string | number | undefined>, query?: { [key: string]: any }, post?: any)
src/api/Sets.ts:132
↓ 3 callers
Method
removeListener
(eventName: string | symbol, listener: Listener)
src/util/EventEmitter.ts:27
↓ 2 callers
Method
addListener
(eventName: string | symbol, listener: Listener)
src/util/EventEmitter.ts:11
↓ 2 callers
Method
byArenaId
(id: number)
src/api/Cards.ts:695
↓ 2 callers
Method
byTcgPlayerId
(id: number)
src/api/Sets.ts:105
↓ 2 callers
Method
definitionById
(id: string)
src/api/BulkData.ts:72
↓ 2 callers
Method
definitionByType
(type: BulkDataType)
src/api/BulkData.ts:67
↓ 2 callers
Method
download
(idOrType: string, lastDownload: string | number | Date)
src/api/BulkData.ts:80
↓ 2 callers
Method
downloadById
* Returns a stream for the given bulk data if it has been updated since the last download time. If it hasn't, returns `undefined` * @param lastDownl
src/api/BulkData.ts:53
↓ 2 callers
Method
downloadByType
* Returns a stream for the given bulk data if it has been updated since the last download time. If it hasn't, returns `undefined` * @param lastDownl
src/api/BulkData.ts:44
↓ 2 callers
Method
emitAll
(event: string, ...data: any[])
src/util/MagicEmitter.ts:56
↓ 2 callers
Method
getBackImageURI
(version: keyof ImageUris)
src/api/Cards.ts:637
↓ 2 callers
Method
getFrontImageURI
(version: keyof ImageUris)
src/api/Cards.ts:632
↓ 2 callers
Method
getPrints
()
src/api/Cards.ts:571
↓ 2 callers
Function
handleTscOut
(startTime: number, data: string | Buffer, prefix?: string)
gulpfile.ts:122
↓ 2 callers
Method
queryPage
(emitter: MagicEmitter<T>, apiPath: string, query: any, page = query?.page as number | undefined ?? 1)
src/util/MagicQuerier.ts:92
↓ 2 callers
Method
random
(query?: string)
src/api/Cards.ts:709
↓ 2 callers
Function
setTimeout
(timeout: number)
src/Scry.ts:47
↓ 2 callers
Function
sleep
(ms = 0)
src/util/MagicQuerier.ts:20
↓ 2 callers
Function
transform
(self: Card, key: keyof { [KEY in keyof Card as Card[KEY] extends string | null | undefined ? KEY : never]: a
src/api/Cards.ts:426
↓ 2 callers
Function
validatePrints
()
src/tests/Main.ts:362
↓ 1 callers
Method
abilityWords
()
src/api/Catalog.ts:81
↓ 1 callers
Method
artifactTypes
()
src/api/Catalog.ts:36
↓ 1 callers
Method
artistNames
()
src/api/Catalog.ts:11
↓ 1 callers
Method
autoCompleteName
(name: string)
src/api/Cards.ts:736
↓ 1 callers
Method
byCardmarketId
(id: number)
src/api/Cards.ts:705
↓ 1 callers
Method
canRetry
(error: SearchError)
src/util/MagicQuerier.ts:59
↓ 1 callers
Method
canRetry
(error: SearchError)
src/util/MagicQuerier.ts:189
↓ 1 callers
Method
cardNames
()
src/api/Catalog.ts:6
↓ 1 callers
Method
creatureTypes
()
src/api/Catalog.ts:21
↓ 1 callers
Method
definitions
()
src/api/BulkData.ts:62
↓ 1 callers
Method
enchantmentTypes
()
src/api/Catalog.ts:41
↓ 1 callers
Method
getCards
(options?: SetSearchOptions)
src/api/Sets.ts:66
↓ 1 callers
Method
getRulings
()
src/api/Cards.ts:566
↓ 1 callers
Method
getSet
()
src/api/Cards.ts:561
↓ 1 callers
Function
getTimeString
(start: number)
gulpfile.ts:138
↓ 1 callers
Method
getTokens
()
src/api/Cards.ts:586
↓ 1 callers
Method
keywordAbilities
()
src/api/Catalog.ts:71
↓ 1 callers
Method
keywordActions
()
src/api/Catalog.ts:76
↓ 1 callers
Method
landTypes
()
src/api/Catalog.ts:31
↓ 1 callers
Method
loyalties
()
src/api/Catalog.ts:61
↓ 1 callers
Method
once
()
gulpfile.ts:58
↓ 1 callers
Method
once
(eventName: string | symbol, listener: Listener)
src/util/EventEmitter.ts:47
↓ 1 callers
Method
parseMana
(shorthand: string)
src/api/Symbology.ts:41
↓ 1 callers
Method
planeswalkerTypes
()
src/api/Catalog.ts:26
↓ 1 callers
Method
powers
()
src/api/Catalog.ts:51
↓ 1 callers
Method
prependListener
(eventName: string | symbol, listener: Listener)
src/util/EventEmitter.ts:19
↓ 1 callers
Method
processCollection
(emitter: MagicEmitter<Card, CardIdentifier>, identifiers: CardIdentifier[])
src/api/Cards.ts:754
↓ 1 callers
Method
queryAxios
(apiPath: string, query?: { [key: string]: any }, post?: any)
src/util/MagicQuerier.ts:172
↓ 1 callers
Method
queryFetch
(apiPath: string, query?: { [key: string]: any }, post?: any)
src/util/MagicQuerier.ts:140
↓ 1 callers
Method
search
(query: string, options?: SearchOptions | number)
src/api/Cards.ts:725
↓ 1 callers
Function
setDuration
(ms: number)
src/util/Cached.ts:135
↓ 1 callers
Function
setLimit
(count: number)
src/util/Cached.ts:146
↓ 1 callers
Method
spellTypes
()
src/api/Catalog.ts:46
↓ 1 callers
Method
supertypes
()
src/api/Catalog.ts:86
↓ 1 callers
Method
toughnesses
()
src/api/Catalog.ts:56
↓ 1 callers
Method
tryQuery
(apiPath: string, query?: { [key: string]: any }, post?: any)
src/util/MagicQuerier.ts:120
↓ 1 callers
Method
watermarks
()
src/api/Catalog.ts:66
↓ 1 callers
Method
wordBank
()
src/api/Catalog.ts:16
Function
Cached
(target: any, key: string, descriptor: TypedPropertyDescriptor<AnyFunction>)
src/util/Cached.ts:23
Method
Scry
(scry: typeof import("../Scry"))
src/api/Sets.ts:84
Method
Scry
(scry: typeof import("../Scry"))
src/api/Cards.ts:646
Method
[Symbol.asyncIterator]
()
src/util/MagicEmitter.ts:85
Method
all
(page = 1)
src/api/Migrations.ts:32
Method
all
()
src/api/Symbology.ts:36
Method
all
()
src/util/MagicEmitter.ts:89
Method
byArenaId
(id: number)
src/api/Rulings.ts:33
Function
byId
(id: string)
src/api/Cards.ts:387
Method
byId
(id: string)
src/api/Migrations.ts:41
next →
1–100 of 153, ranked by callers