New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

harproxyserver

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harproxyserver

A simple proxy server that records and plays back HTTP requests and responses in HAR format.

  • 0.0.2
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-88.57%
Maintainers
1
Weekly downloads
 
Created
Source

HAR Proxy Server

HAR Proxy Server is a simple proxy server that records and plays back HTTP requests and responses in HAR format. It can be used as a standalone executable or integrated into other projects as an npm package.

Features

  • Proxy requests and responses to a target URL
  • Record and save requests and responses in HAR format
  • Playback recorded requests and responses from a HAR file
  • Configurable playback endpoint prefix
  • Command-line interface for easy configuration

Installation

To install the server as a global command-line utility:

npm install -g harproxyserver

Usage

API

harproxyserver / Exports

Standalone Executable

Run the server using the harServer command:

harProxyServer --target-url http://example.com --har-file example.har --mode record --prefix /har

In Your Project

Import the server and utility functions in your project:

import { findHarEntry, recordedHarMiddleware } from 'harproxyserver';

Command-Line Options

  • --target-url: The target URL to proxy requests (required)
  • --har-file: The HAR file name to save the log (optional, default: recording-.har)
  • --mode: The server mode, either 'record' or 'play' (required)
  • --prefix: The prefix for the HAR playback endpoint (optional, default: '')

License

Apache License 2.0

Keywords

FAQs

Package last updated on 17 Apr 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc