🏹
- trpapp.github.io
- @ThomasRPapp
- ThomasRPapp
- https://simplex.chat/contact/#/?v=2-7&smp=smp%3A%2F%2FenEkec4hlR3UtKx2NMpOUK_K4ZuDxjWBO1d9Y4YXVaA%3D%40smp14.simplex.im%2F_BsG6LqE6j6REIMiNFYyy8ED688PrnlU%23%2F%3Fv%3D1-3%26dh%3DMCowBQYDK2VuAyEA7nnOXsATMclsPiTDRJt0TiutHShqTXGYGCLM7gBBxCc%253D%26srv%3Daspkyu2sopsnizbyfabtsicikr2s4r3ti35jogbcekhm3fsoeyjvgrid.onion
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
import * as http from 'http' | |
import { URL } from 'url' | |
import { stat, readFile } from 'fs/promises'; | |
import { join, extname } from 'path'; | |
// you can pass the parameter in the command line. e.g. node http_server.js 3000 | |
const port = process.argv[2] || 9000; | |
// maps file extention to MIME types |