Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boywithkeyboard-archive/cdn-cgi-trace
Parse /cdn-cgi/trace to JSON
https://github.com/boywithkeyboard-archive/cdn-cgi-trace
cloudflare geolocation
Last synced: 12 days ago
JSON representation
Parse /cdn-cgi/trace to JSON
- Host: GitHub
- URL: https://github.com/boywithkeyboard-archive/cdn-cgi-trace
- Owner: boywithkeyboard-archive
- License: mit
- Created: 2024-03-24T21:39:26.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-25T21:02:57.000Z (8 months ago)
- Last Synced: 2024-10-04T12:15:21.034Z (about 2 months ago)
- Topics: cloudflare, geolocation
- Language: TypeScript
- Homepage: https://npmjs.com/cdn-cgi-trace
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
## cdn-cgi-trace
**cdn-cgi-trace** parses the response from `https://1.1.1.1/cdn-cgi/trace` to JSON.
### Setup
```bash
npm i cdn-cgi-trace
``````ts
import { fetchTrace } from 'cdn-cgi-trace'
```### Usage
```ts
const trace = await fetchTrace()
```