0.2.5 • Published 4 months ago

impit v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

impit for JavaScript

impit is a Node.JS module that provides bindings for the impit library.

It allows you to switch the TLS fingerprints and the HTTP headers of your requests, while still using the same API as the built-in (since Node.JS 18) fetch function.

Installation

npm install impit

Installing the root package (impit) with the package manager of your choice will also install the correct prebuilt binary for your platform.

Compatibility

Operating SystemArchitecturelibc implementationPrebuilt binaries available
Linuxx86_64glibc
Linuxx86_64musl
macOSx86_64N/A
Windowsx86_64N/A
macOSarm64N/A
Windowsarm64N/A
Linuxarm64glibc❌*
Linuxarm64musl❌*

*The prebuilt binaries for Linux on arm64 are WIP and not available on npm yet. You can build the package from sources in this repository.

Usage

import { Impit } from 'impit';

// Set up the Impit instance
const impit = new Impit({
    browser: "Chrome", // or "Firefox"
    proxyUrl: "http://localhost:8080",
    ignoreTlsErrors: true,
});

// Use the `fetch` method as you would with the built-in `fetch` function
const response = await impit.fetch("https://example.com");

console.log(response.status);
console.log(response.headers);
console.log(await response.text());
// console.log(await response.json());
// ...
0.2.5

4 months ago

0.2.4

4 months ago

0.2.3

4 months ago

0.2.2

4 months ago

0.2.1

4 months ago

0.2.0

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago