Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

har-to-postman

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

har-to-postman

Convert a har specification file (1.2) to a Postman Collection

  • 1.0.3
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

har-to-postman

Enables Postman support of the HAR specification

Options:

Check out complete list of options and their usage at OPTIONS.md

Command Line Interface

The converter can be used as a CLI tool as well. The following command line options are available.

har2postman [options]

Options

  • -v, --version
    Specifies the version of the converter

  • -s <source>, --spec <source>
    Used to specify the HAR specification (file path) which is to be converted

  • -o <destination>, --output <destination>
    Used to specify the destination file in which the collection is to be written

  • -t, --test
    Used to test the collection with an in-built sample specification

  • -p, --pretty
    Used to pretty print the collection object while writing to a file

  • -O, --options Used to supply options to the converter, for complete options details see here

  • -c, --options-config
    Used to supply options to the converter through config file, for complete options details see here

  • -h, --help
    Specifies all the options along with a few usage examples on the terminal

Usage

Sample usage examples of the converter CLI

  • Takes a specification (spec.har) as an input and writes to a file (collection.json) with pretty printing and using provided options
$ har2postman -s spec.har -o collection.json -p -O folderStrategy=Page
  • Takes a specification (spec.har) as an input and writes to a file (collection.json) with pretty printing and using provided options via config file
$ har2postman -s spec.har -o collection.json -p  -c ./examples/cli-options-config.json
  • Testing the converter
$ har2postman --test

Keywords

FAQs

Package last updated on 15 Feb 2024

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