npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

postman-collection-merger

v1.0.0

Published

A CLI tool to merge Postman collections.

Downloads

2

Readme

Postman Collection Merger

Description

The Postman Collection Merger is a command-line interface (CLI) tool designed to merge an exported postman collection into an existing postman collection.

Installation

To install the Postman Collection Merger, you need to have Node.js and npm installed on your computer. Once you have those set up, you can install the tool globally using npm:

```bash npm install -g postman-collection-merger ```

This will install the package globally on your system, allowing you to use it from anywhere in your command line.

Usage

Run the tool using the following command syntax:

```bash postman-merger --apiKey <YOUR_API_KEY> --collection <COLLECTION_NAME> --workspace <WORKSPACE_NAME> --folderName <FOLDER_NAME> --collectionJsonFile <PATH_TO_COLLECTION_JSON> ```

Command-Line Arguments

  • --apiKey or -k: Your API key for the Postman API. This is required to authenticate requests.
  • --mergedCollection or -m: The name of the collection to merge into. This specifies the target collection that will be updated.
  • --workspaceName or -w: The name or ID of the workspace where the collection resides. This helps in locating the collection within your Postman environment.
  • --folderName or -f: The name of the folder to be added to the collection. This represents the new folder that will be merged into the existing collection.
  • --createCollectionIfMissing, -create: Specify whether to create the Postman collection if it does not exist.

Examples

This example demonstrates how to use the Postman Collection Merger to merge a folder into the "Example Collection" located in the default "My Workspace".

An example postman collection can be found at ./[example-1-postman-collection.json](example%2Fexample-1-postman-collection.json)

Example Command

```bash postman-merger --apiKey "your_api_key" --collection "Example Collection" --workspace "My Workspace" --folderName "New Folder" --collectionJsonFile "./example/example-1-postman-collection.json" --createCollectionIfMissing true ```

This command will replace the "New Folder" in the "Example Collection" within "My Workspace". It will create the "Example Collection" if needed. It will not affect any other folders in the collection

Contributing

Contributions to the Postman Collection Manager are welcome! If you have suggestions for improvements or encounter any issues, please feel free to open an issue or submit a pull request on our GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.