Gathering detailed insights and metrics for postgen
Gathering detailed insights and metrics for postgen
Gathering detailed insights and metrics for postgen
Gathering detailed insights and metrics for postgen
A simple node script to convert postman collections to clean REST client libs for node.
npm install postgen
Typescript
Module System
Node Version
NPM Version
JavaScript (94.51%)
Handlebars (5.49%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
GPL-3.0 License
4 Stars
87 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Apr 17, 2024
Latest Version
5.0.4
Package Id
postgen@5.0.4
Unpacked Size
133.55 kB
Size
27.60 kB
File Count
10
NPM Version
9.8.1
Node Version
18.18.0
Published on
Sep 28, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
A simple node script to convert postman collections to clean REST client libs for node.
npm install -g postgen
v2.1
collection.cd
into your projects root folder that you want to use the client with.fasquest
as it is the only dependency of the generated client.npm install --save fasquest
postgen /path/to/postman/collection.js > YourApi.js
postgen /path/to/postman/collection.js web > YourApi.js
A postman collection of the service:
WaspsWithBazookas
|
|___Hive
|___Wasps
|___Wasp
1 2const WaspsWithBazookas = require('./WaspsWithBazookasAPI.js')( 3 'https://127.0.0.1:4269' // the url to service with no trailing / 4); 5 6// Start loadtest for 1second 7WWB.Hive.HivePoke({ 8 "t": "10", 9 "c": "50", 10 "d": "1", 11 "target": "http://127.0.0.1:4269/hive/status" 12}).then(response=>{ 13 console.log(response) 14}) 15 16// Wait 2 seconds and show the report 17setTimeout(async ()=>{ 18 console.log((await WWB.Hive.HiveStatusReport())) 19},2000) 20
See the samples folder for the collection used and the generated API from that collection.
A postman collection of the service:
Travelling
|
|___Auth
|___Groups
|___User
|____Current
1 2const Travelling = require('./TravellingAPI.js')( 3 'https://127.0.0.1:6969' // the url to service with no trailing / 4); 5 6Travelling.Auth.login({ 7 "username":"test", 8 "password":"password1234" 9}).then(response=>{ 10 console.log(response) 11}) 12
See the samples folder for the collection used and the generated API from that collection.
The code to do the generation is just some hacky code busted out in a hour. I would love help cleaning it up and making it more feature rich.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More