Exports
wreq-js exports the following functions and classes:Quick reference
| Function | Description |
|---|---|
fetch() | Make HTTP requests with browser fingerprinting |
createSession() | Create a persistent session with cookie storage |
withSession() | Auto-disposing session helper |
websocket() | Connect to WebSocket servers |
getProfiles() | List available browser profiles |
getOperatingSystems() | List available operating systems |
TypeScript support
wreq-js includes full TypeScript definitions. All types are exported:Fetch API compatibility
wreq-js aims to be compatible with the standard Fetch API while adding browser impersonation features:| Standard Fetch | wreq-js |
|---|---|
fetch(url, init) | ✅ Supported |
Request class | ✅ Supported |
Response class | ✅ Supported |
Headers class | ✅ Supported |
AbortController | ✅ Supported |
ReadableStream body | ✅ Supported |
| Service Workers | ❌ Not applicable |
| Cache API | ❌ Not applicable |