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

postman-collection

Package Overview
Dependencies
Maintainers
3
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-collection

Enables developers to use a unified Postman Collection format Object across projects

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
655K
decreased by-34.84%
Maintainers
3
Weekly downloads
 
Created

What is postman-collection?

The postman-collection npm package provides a set of utilities to work with Postman collections, which are a way to group and organize API requests. This package allows you to create, manipulate, and validate Postman collections programmatically.

What are postman-collection's main functionalities?

Create a Collection

This feature allows you to create a new Postman collection with a specified name and description.

const { Collection } = require('postman-collection');
const myCollection = new Collection({
  info: {
    name: 'My Collection',
    description: 'A sample collection'
  },
  item: []
});
console.log(myCollection);

Add a Request to a Collection

This feature allows you to add a new request to an existing Postman collection.

const { Collection, Item } = require('postman-collection');
const myCollection = new Collection({
  info: {
    name: 'My Collection'
  },
  item: []
});
const requestItem = new Item({
  name: 'Sample Request',
  request: {
    url: 'https://api.example.com',
    method: 'GET'
  }
});
myCollection.items.add(requestItem);
console.log(myCollection);

Validate a Collection

This feature allows you to validate a Postman collection to ensure it meets the required schema.

const { Collection } = require('postman-collection');
const myCollection = new Collection({
  info: {
    name: 'My Collection'
  },
  item: []
});
const isValid = myCollection.validate();
console.log(isValid);

Other packages similar to postman-collection

Keywords

FAQs

Package last updated on 24 May 2016

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