Network

changeIdentity.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

const

rotateTorIdentity

Target Style
export const rotateTorIdentity = async ({ atPort = '9050' } = {}) => {

Rotates the Tor identity for the local SOCKS proxy.

Target style API. Preferred for new code.

Parameters

  • [options]{ atPort?: string }

Returns

Promise<void>

Legacy Style

Legacy Style

1 exports

const

changeIdentity

Legacy Style
export const changeIdentity = async (port = '9050') => rotateTorIdentity({ atPort: port })

No description provided.

Legacy API. Kept for older code and not the preferred choice for new code.