Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@apideck/postman-to-k6

Latest version: v1.14.5

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: gdewilde, gmenoiaa, mithgroth, nicklloyd, ritiksingh7, samzani, trinix
275 Stars
29 Forks
4 Versions
4.1K Downloads
JavaScript Repo language

Scan summary

@apideck/postman-to-k6 was last scanned on 25 Nov 2026 at version 1.14.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 1.14.5.
  • Downloads: 4,121 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.14.5 LATEST 25 Nov 2026 No rules fired
1.14.4 12 Oct 2026 No rules fired
1.14.3 12 Oct 2026 1 rule fired
1.14.2 23 May 2026 Not shown

No rules fired in 1.14.5

Findings

Findings for v1.14.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.14.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Postman-to-k6

Converts a Postman collection to a k6 script.

The postman-to-k6 converter utilizes your Postman collection and converts all the Postman requests, including tests, variables, ... to K6 scripts that can be executed by K6 to run performance tests.

Github badge npm npm

This project is a friendly fork of the original grafana/postman-to-k6 converter, actively maintained and open for new contributions.

Feel free to contribute or pass any suggestion to improve postman-to-k6.

Content

  • Features
  • Installation
    • Local Installation (recommended)
    • Global Installation
  • Usage
  • Video introduction
  • Options
    • Iterations
    • Environment Variables
    • Global Variables
    • CSV Data File
    • JSON Data File
    • K6 Param Options File
    • K6 Handle Summary as JSON
    • K6 Request tag
    • Separate
    • Skip Pre
    • Skip Post
    • CLI options file
  • Examples
  • Testing
  • Unsupported Features
  • Other similar tools
  • Credits

Features

  • [x] Pre-request scripts.
  • [x] Test scripts.
  • [x] Variables (at all scopes + dynamic).
  • [x] Data files.
  • [x] Authentication methods (except Hawk).
  • [x] File uploads (experimental).
  • [x] postman.* interface (exceptions below).
  • [x] pm.* interface (exceptions below).
  • [x] Support for Postman Dynamic Variables & ReplaceIn function.
  • [x] Global variables exposed by Postman: globals environment data iteration.
  • [x] xml2Json conversion.
  • [x] All Postman Schema versions.

Installation

Local Installation (recommended)

While possible to install globally, we recommend that you, if possible, add the converter to the node_modules of your test project using:

$ npm install -D @apideck/postman-to-k6

or using yarn...

$ yarn add @apideck/postman-to-k6

Note that this will require you to run the converter with npx @apideck/postman-to-k6 your-postman-file or, if you are using an older versions of npm, ./node_modules/.bin/postman-to-k6 your-postman-file.

Global Installation
$ npm install -g @apideck/postman-to-k6

Usage

To convert an exported collection to a k6 script:

$ postman-to-k6 collection.json -o k6-script.js

Then run the script in k6, as usual, using:

$ k6 run k6-script.js

Video Introduction

Together with Nicole van der Hoeven & Paul Balogh from the K6 team, we talked about "postman-to-k6" in the K6 Office Hours podcast. We talked about how to convert a Postman collection to a k6 load test, the advantages of Postman, and the benefits of reusing automation testing scripts for performance.

Watch it on Youtube >> https://www.youtube.com/watch?v=Be66Db4wHLA

Topics covered:

  • Use cases for k6
  • Quick tour of Postman
  • Why Postman is not designed for load testing
  • Demo of postman-to-k6
  • How to use Portman to generate tests from an OpenAPI spec

Options

Iterations

Configures how many times the script will be executed before completion.

Flag Verbose Default
-i --iterations 1

Example:

$ postman-to-k6 collection.json --iterations 25 -o k6-script.js
Environment Variables

Provide environment variables from a JSON file.

Flag Verbose Default
-e --environment N/A

Example:

$ postman-to-k6 collection.json --environment environment.json -o k6-script.js
Global Variables

Provide global variables from a JSON file.

Flag Verbose Default
-g --global N/A
$ postman-to-k6 collection.json --global globals.json -o k6-script.js
CSV Data File

Provide a data file in the CSV format.

Flag Verbose Default
-c --csv N/A
$ postman-to-k6 collection.json --csv data.csv -o k6-script.js
JSON Data File

Pass in a data file in the JSON format.

Flag Verbose Default
-j --json N/A
$ postman-to-k6 collection.json --json data.json -o k6-script.js
K6 Param Options File

Pass K6 parameter options as a file in JSON format.

Flag Verbose Default
--k6-params N/A
$ postman-to-k6 collection.json --k6-params k6-params.json -o k6-script.js
K6 Handle Summary as JSON

Output the K6 summary as a file in JSON format. This will add the K6 handleSummary(data) to the generated script, providing the functionality that K6 will store the summary output as JSON file locally.

Flag Verbose Default
--k6-handle-summary-json N/A
$ postman-to-k6 collection.json --k6-handle-summary-json summary-report.json -o k6-script.js
K6 Request tag

Generate K6 request name tags based on available naming strategies:

  • none: no automatic generated tags | default
  • request: uses the request name as tag (example "Show all accounts")
  • folder-request: uses Postman folder name and the request name (example: "Accounts - Show all accounts")
Flag Verbose Default
--k6-request-tagging N/A

Example for request strategy

$ postman-to-k6 collection.json --k6-request-tagging=request -o k6-script.js

Example for folder-request strategy

$ postman-to-k6 collection.json --k6-request-tagging=folder-request -o k6-script.js
Separate

Split requests into separate files, for easier rearrangement of the logic.

Flag Verbose Default
-s --separate false
$ postman-to-k6 collection.json --separate -o k6-script.js
$ postman-to-k6 collection.json -s -o k6-script.js
Skip Pre

Skips any pre-request scripts during conversion

Flag Verbose Default
--skip-pre false
$ postman-to-k6 collection.json --skip-pre -o k6-script.js
Skip Post

Skips any post-request scripts during conversion

Flag Verbose Default
--skip-post false
$ postman-to-k6 collection.json --skip-pre -o k6-script.js
CLI options file

Manage all the CLI options in a separate configuration file and pass them along to the postman-to-k6 command. To make the CLI usage easier, especially in CI/CD implementations.

All the available CLI options can be used in the config file. By passing the CLI options as parameters, you can overwrite the defined CLI options defined in the file.

Flag Verbose Default
--cli-options-file false
$ postman-to-k6 collection.json --cli-options-file cli-config.json

Example of JSON CLI config file

{
    "output": "k6-script.js",
    "k6-params": "config/k6-params.json",
    "environment": "config/envs/team.env.json",
    "separate": true
}

Examples

A collection of Postman examples are located under example. To run one of the examples, just run it as you would any other command:

$ postman-to-k6 example/v2/echo.json -o k6-script.js

Testing

Run the test suite:

$ npm run test-jest

npm run test-jest includes a native-Jest guard for tests/** (fails on AVA-style APIs or mock-require).

Run the default test entrypoint:

$ npm run test-all

Run coverage and generate a combined summary/trend artifact:

$ npm run coverage-all

npm run coverage-jest-regression enforces a Jest coverage regression gate against scripts/coverage/jest-coverage-baseline.json with a max drop of 0.30% for lines/statements/functions/branches.

Jest-native testing rules for tests/**:

  • Use native Jest assertions (expect(...)) only.
  • Do not import AVA (import test from 'ava') in tests/**.
  • Do not use AVA-specific APIs (test.serial, t.is, t.deepEqual, t.throws, etc.).
  • Do not use mock-require in tests/**; use the shared Jest shim harness in tests/helpers/shimHarness.js.

The guard command is:

$ npm run test-jest-native-guard

Unsupported Features

  • Sending requests from scripts using pm.sendRequest.
  • Controlling request execution order using postman.setNextRequest.
  • Cookie properties, like hostOnly, session, and storeId.
  • Postman methods:
    • pm.response.reason
    • pm.response.to.have.status(reason)
    • pm.response.to.not.have.status(reason)
    • pm.request.auth
  • The Hawk authentication method.
  • Deprecated xmlToJson method.
  • Request IDs are changed. Postman doesn't provide them in the export, so we have to generate new ones.

Resources

A collection of blog posts and resources about postman-to-k6

Other similar tools

Credits

Special thanks to the K6 team from Grafana for open-sourcing & growing the converter and contributing it to the community. Thanks to bookmoons for creating this tool. Also, thanks to borjacampina for creating the original incarnation of the tool.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @apideck/postman-to-k6

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229