ts-curl-impersonate
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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();

Package Sidebar

Install

npm i ts-curl-impersonate

Weekly Downloads

133

Version

1.0.1

License

MIT

Unpacked Size

34 MB

Total Files

23

Last publish

Collaborators

  • battlesqui_d