1.1.6 • Published 1 year ago

@pricething/curl v1.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@pricething/curl

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

Install

# yarn
yarn add @pricething/curl

# npm
npm i @pricething/curl

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

1 year ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago