Fawaz Ahmed

Results 77 issues of Fawaz Ahmed

```js async function getCloudflareJSON(){ let data = await fetch('https://1.0.0.1/cdn-cgi/trace').then(res=>res.text()) let arr = data.trim().split('\n').map(e=>e.split('=')) return Object.fromEntries(arr) } getCloudflareJSON().then(console.log) ``` **Output:** ```js {fl: "202f225", h: "1.0.0.1", ip: "47.37.137.777", ts: "1625581799.09", visit_scheme: "https", ...

https://community.cloudflare.com/t/what-does-the-fl-field-in-cdn-cgi-trace-represent/150595

First increasing swap using [this](https://github.com/easimon/maximize-build-space) and if doesn't work, then also below add `git config --global gc.auto 0` to disable gc & reduce ram usage,

This API have multiple fallback urls: **Fallback URL:** ``` https://raw.githubusercontent.com/fawazahmed0/currency-api/{apiVersion}/{endpoint} ``` **Pseudo code:** For example, if you want to fetch `usd` to `eur` rate: ``` Fetch https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/usd/eur.min.json If above url...

add support for all cryptos in currency-api (need to add all crypto names in json, to avoid issues) add script in currapi to delete the days folders automatically, everyday, &...

npm support(max tar.gz package size 200mb): jsdelivr (doesn't work if package size > 100mb) unpkg.com (this works fine) cdnjs (not great, they store package in their [repo](https://github.com/cdnjs/cdnjs/tree/master/ajax/libs)) cloudflare pages (20k...

Add get param to the url, to get new uncached data, adding a UTC date in param is best thing to do, as rates are updated at UTC 00:00 daily,...

**Steps to add new crypto currency in this API:** 1. Go [Here](https://github.com/fawazahmed0/currency-api/edit/1/currscript.js) 2. In `topCryptoCurrency` variable, add your crypto symbol. 3. Commit & Create a PR. For example, to [add...

need to have CI partial clone code in actions to support cmd/pwsh For now using mac-os

https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml?44088e312088e2aeaf2d3fb6ecde4c01 https://www.cnb.cz/cs/financni_trhy/devizovy_trh/kurzy_devizoveho_trhu/denni_kurz.xml http://api.nbp.pl/en.html https://www.bis.org/statistics/ ref for more: https://github.com/public-apis/public-apis https://www.programmableweb.com/category/currency/api (can also source from paid sites, with free service, with api limited request/month)