New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

impit

Package Overview
Dependencies
Maintainers
12
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

impit

Impit for JavaScript

latest
Source
npmnpm
Version
0.13.0
Version published
Weekly downloads
99K
41.42%
Maintainers
12
Weekly downloads
 
Created
Source

impit for JavaScript

This documents the impit Node.JS package, which provides JavaScript bindings for the impit library.

See documentation for the Python version of impit here.

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
Linuxarm64glibc
Linuxarm64musl
macOSx86_64N/A
Windowsx86_64N/A
macOSarm64N/A
Windowsarm64N/A

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

// Override redirect behavior per request (default: follows instance-level setting)
const manualResponse = await impit.fetch("https://example.com/login", {
    redirect: "manual", // "follow" | "manual" | "error"
});

if (manualResponse.status === 302) {
    console.log("Redirect to:", manualResponse.headers.get("location"));
}

FAQs

Package last updated on 26 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts