Escape-Technologies / graphman

Quikly scaffold a postman collection for a GraphQL API. Compatible with Postman & Insomnia.
MIT License
240 stars 12 forks source link

feat: use the postman-collections sdk #45

Open nohehf opened 1 year ago

nohehf commented 1 year ago

Currently, the format.ts module is building the postman collection programmatically from scratch. However, Postman has an npm package: https://github.com/postmanlabs/postman-collection that provides an SDK for doing so. I decided not to use it in the fireplace as deno support for npm packages was not a thing back then, but it has evolved a lot since then. It would be interesting to use the SDK for cleaner code, reducing the code-base and future-proofing.

Edit: as of deno 1.26.x npm support is still unstable, I'll get onto this issue when I'm satisfied with this: https://github.com/denoland/deno/issues/15960