https://github.com/deno-sandbox/tor
Make request on the Tor network with Deno 🕶
https://github.com/deno-sandbox/tor
deno tor
Last synced: about 2 months ago
JSON representation
Make request on the Tor network with Deno 🕶
- Host: GitHub
- URL: https://github.com/deno-sandbox/tor
- Owner: Deno-Sandbox
- Created: 2022-04-23T19:17:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T16:45:48.000Z (over 3 years ago)
- Last Synced: 2025-03-17T22:07:43.769Z (over 1 year ago)
- Topics: deno, tor
- Language: TypeScript
- Homepage: https://deno.land/x/tor/
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Tor 🧅
Make request on the Tor network with Deno 🕶
> need to have Tor socks5 proxy running, on linux run `tor`
```ts
import { Tor } from "https://deno.land/x/tor/mod.ts"
const tor = new Tor()
```
## Start tor
```ts
await tor.start()
```
## Check the tor socks5 proxy is online
```ts
let check = tor.checkProxyIsOnline()
```
## Make a request
### Get
```ts
let response = await tor.get("YOUR_ONION_URL");
```
### Post
```ts
let response = await tor.post("YOUR_ONION_URL", "HERE YOUR DATA");
```