Skip to content

A library for using curl-impersonate inside of NodeJS.

License

Notifications You must be signed in to change notification settings

pricething/ts-curl-impersonate

 
 

Repository files navigation

ts-curl-impersonate

Fork of curl-impersonate-node that adds windows support along with some other features.

Install

# yarn
yarn add ts-curl-impersonate

# npm
npm i ts-curl-impersonate

Usage

// normal request
const response = await new RequestBuilder()
    .url(/** YOUR URL HERE **/)
    .header("x-foo-bar", "baz")
    .send();

// make a post request
const response = await new RequestBuilder()
    .url(/** YOUR URL HERE **/)
    .method("POST")
    .body({ foo: "bar" })
    .send();

// use a browser preset (options vary by platform)
const response = await new RequestBuilder()
    .url(/** YOUR URL HERE **/)
    .preset({ name: "chrome", version: "110" })
    .send();

About

A library for using curl-impersonate inside of NodeJS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.1%
  • JavaScript 0.9%