Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more

Tor ๐Ÿง…

Make request on the Tor network with Deno ๐Ÿ•ถ

need to have Tor socks5 proxy running, on linux run tor

import { Tor } from "https://deno.land/x/tor/mod.ts"
const tor = new Tor()

Start tor

await tor.start()

Check the tor socks5 proxy is online

let check = tor.checkProxyIsOnline()

Make a request

Get

let response =  await tor.get("YOUR_ONION_URL");

Post

let response =  await tor.post("YOUR_ONION_URL", "HERE YOUR DATA");