Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coinconvert/crypto-convert
/ functions
Functions
48 in github.com/coinconvert/crypto-convert
⨍
Functions
48
◇
Types & classes
30
↓ 11 callers
Function
formatNumber
(n: number | string, decimals?: number)
src/helpers.ts:51
↓ 7 callers
Method
keys
Returns a list of keys in the list.
src/api.d.ts:19
↓ 7 callers
Method
ready
* Promise function that resolves when cache has loaded.
src/index.ts:355
↓ 5 callers
Method
log
(..._: any)
src/worker.ts:221
↓ 4 callers
Method
#getPrice
* Get a symbol price from tickers
src/index.ts:69
↓ 4 callers
Method
#populate
* Recursively creates the conversion wrapper functions for all the currencies.
src/index.ts:186
↓ 3 callers
Method
#isSafeKey
(key: string)
src/index.ts:162
↓ 3 callers
Function
symbolMap
(symbol: string, map: { /** * @example * * { * 'USDT': 'USD' //Replace USDT with USD
src/helpers.ts:1
↓ 2 callers
Method
#setExtendedOptions
(options: ExtendedOptions)
src/index.ts:173
↓ 2 callers
Method
browserTicker
()
src/worker.ts:454
↓ 2 callers
Function
getAverage
(pairs: { [symbol: string]: number }[])
src/helpers.ts:32
↓ 2 callers
Function
isEmpty
(obj: any)
src/helpers.ts:67
↓ 2 callers
Method
run
()
src/worker.ts:572
↓ 2 callers
Method
setOptions
* Update options
src/index.ts:291
↓ 2 callers
Method
updateCrypto
()
src/worker.ts:333
↓ 1 callers
Method
#wrapper
* This is where conversion happens.
src/index.ts:85
↓ 1 callers
Method
addCurrency
* Add a custom currency fetcher. Can be anything. * * @example * ```javascript * convert.addCurrency('ANY','USD', async fetchPrice()=>{ *
src/index.ts:372
↓ 1 callers
Method
browserLists
()
src/worker.ts:478
↓ 1 callers
Function
isValidUrl
(string: string)
src/helpers.ts:75
↓ 1 callers
Method
joinPrices
(data: Tickers)
src/worker.ts:426
↓ 1 callers
Method
list
* Supported currencies list
src/index.ts:259
↓ 1 callers
Method
removeCurrency
(base: string, quote?: string)
src/custom.ts:73
↓ 1 callers
Method
restart
* Re-start the worker when it has been stopped.
src/index.ts:347
↓ 1 callers
Method
runBrowser
()
src/worker.ts:496
↓ 1 callers
Method
runServer
()
src/worker.ts:542
↓ 1 callers
Method
setOptions
* Options
src/worker.ts:247
↓ 1 callers
Method
stop
()
src/worker.ts:586
↓ 1 callers
Method
ticker
* Price Tickers
src/index.ts:284
↓ 1 callers
Method
updateFiat
()
src/worker.ts:386
↓ 1 callers
Method
updateLists
()
src/worker.ts:404
Method
[Symbol.iterator]
()
src/api.d.ts:15
Method
addCurrency
( base: string, quote: string, getter: ()=>number | Promise<number>, interval?: number, )
src/custom.ts:26
Method
constructor
(options: ExtendedOptions = {})
src/index.ts:43
Method
constructor
(o?: Options | ((currentOptions: Options) => Options))
src/worker.ts:229
Method
constructor
( )
src/custom.ts:17
Method
cryptoInfo
* Metadata information about cryptocurrencies
src/index.ts:269
Method
entries
Returns an array of key, value pairs for every entry in the list.
src/api.d.ts:17
Method
functionProto
()
src/index.ts:164
Method
isCustomServerHost
()
src/worker.ts:329
Method
isReady
* Quick check if cache has loaded.
src/index.ts:252
Method
lastUpdated
* Get crypto prices last updated ms
src/index.ts:276
Function
on_request
(request)
src/api.ts:26
Function
on_success
(response, request?)
src/api.ts:39
Method
ready
()
src/custom.ts:22
Method
removeCurrency
* Remove custom currency fetcher.
src/index.ts:390
Method
restart
()
src/worker.ts:608
Method
stop
* Stop the worker. * * It's recommended to do this on Component unmounts (i.e if you are using React).
src/index.ts:340
Method
values
Returns a list of values in the list.
src/api.d.ts:21