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
| // run this using: curl -s https://rawurl... | node | |
| import { generateKeyPair, createPublicKey } from 'crypto'; | |
| import { readFile } from 'fs/promises'; | |
| import { promisify } from 'util'; | |
| import path from 'path'; | |
| import { fileURLToPath } from 'url'; | |
| import https from 'https'; | |
| import http from 'http'; | |
| // Get the directory of the current module |
OlderNewer