mikeal / bent

Functional JS HTTP client (Node.js & Fetch) w/ async await
2.2k stars 106 forks source link

Convert to ES6 Modules #114

Open redxtech opened 4 years ago

redxtech commented 4 years ago

How hard would it be to either convert the app into using es6 import/export or add an extra file or two that would call the same functions and all but provide a way to import/export with es6 modules?

If that's something you'd be willing to implement I can make a PR implementing this.

mikeal commented 4 years ago

Good timing ;)

I just figured out the last compatibility issue with native ESM and have tooling to manage it https://github.com/mikeal/limbo

Still working on a better test tool, but I definitely plan on bent being migrated to ESM.

redxtech commented 4 years ago

Oh nice, glad to hear it!