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

insomnia-importers

Package Overview
Dependencies
Maintainers
4
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insomnia-importers

Various data importers for Insomnia

  • 3.5.1-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
decreased by-19.41%
Maintainers
4
Weekly downloads
 
Created
Source

Importers

Npm Version

This repository contains converters to translate popular HTTP data formats to the latest Insomnia format.

Supported import types include:

  • Insomnia v1, v2, v3, v4
  • Postman v2.0
  • Postman Environment
  • HTTP Archive Format 1.2 (HAR)
  • cURL
  • Swagger 2.0
  • OpenAPI 3.0
  • WSDL

Installation

For usage on command line, install globally

npm install -g insomnia-importers

For programmatic usage, install in project

npm install insomnia-importers

Command Line Usage

insomnia-import /path/to/har-export.json > insomnia-export.json

Programmatic Usage

import { importers } from 'insomnia-importers';

(async function () {
  // Convert a Curl command
  const output = await importers.convert(
    'curl -X POST https://insomnia.rest --data "Cool!"'
  );

  // Pretty print the result
  console.log(JSON.stringify(output.data, null, 2));
})();

Running Tests

Run all tests

npm run test

Run test watcher

npm run test:watch

FAQs

Package last updated on 25 Aug 2022

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