This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A REST API for fetching the repsponse from | |
| * a custom GPT assistant via the OpenAI API | |
| * Deployed as a simple Cloudflare Worker | |
| * Licensed under MIT (C) Alicia Sykes 2024 | |
| */ | |
| (() => { | |
| addEventListener("fetch", (event) => { | |
| event.respondWith(handleRequest(event.request)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A quick and simple JS WHOIS lookup to return JSON | |
| * Docs and usage instructions are below... | |
| **/ | |
| import * as whois from 'whois'; | |
| import * as changeCase from 'change-case'; | |
| import { decodeEntity } from 'html-entities'; | |
| const DELIMITER = ':'; |
OlderNewer