Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neuralegion/postman2har
Transform your Postman collection to a series of HAR request objects.
https://github.com/neuralegion/postman2har
har json postman postman-collection
Last synced: 3 months ago
JSON representation
Transform your Postman collection to a series of HAR request objects.
- Host: GitHub
- URL: https://github.com/neuralegion/postman2har
- Owner: NeuraLegion
- License: mit
- Archived: true
- Created: 2020-06-29T13:32:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T18:10:00.000Z (about 3 years ago)
- Last Synced: 2024-09-28T18:23:11.885Z (3 months ago)
- Topics: har, json, postman, postman-collection
- Language: TypeScript
- Homepage:
- Size: 1.1 MB
- Stars: 2
- Watchers: 14
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @neuralegion/postman2har
**THIS REPO HAS BEEN DEPRECATED. THE DEVELOPMENT HAS MOVED TO A NEW REPOSITORY: https://github.com/NeuraLegion/har-sdk**
Transform you Postman collection to a series of HAR request objects.
- https://schema.getpostman.com/collection/json/v2.1.0/draft-07/docs/index.html
- http://www.softwareishard.com/blog/har-12-spec/#request## Setup
```bash
npm i --save @neuralegion/postman2har
```## π Usage
Using as a ES module:
```js
import { postman2har } from '@neuralegion/postman2har';
import collection from 'your-postman-collection.json';postman2har(collection).then((requests) => {
console.log(requests);
});
```If you want to pass additional data to resolve environment variables you can pass them via options:
```js
postman2har(collection, {
environment: { baseUrl: 'https://example.com' }
}).then((requests) => {
console.log(requests);
});
```## πLicense
Copyright Β© 2020 [NeuraLegion](https://github.com/NeuraLegion).
This project is licensed under the MIT License - see the [LICENSE file](LICENSE) for details.