jshttp / negotiator

An HTTP content negotiator for Node.js
MIT License
320 stars 36 forks source link

Export ECMAScript modules (ESM) #71

Open dretsa opened 1 month ago

dretsa commented 1 month ago

While CJS continues to be an important part of the NodeJS world, it seems to be slowly moving towards ESM. I think we should export both cjs and ems.

The reason for this is so that libraries using negotiator like tinyhttp can be fully ESM. I am happy to help with a PR :)

dretsa commented 1 month ago

I have created a new repository for an ESM/TS version of this package. Let me know what you think: https://github.com/colorninja/navigator-es

The branch is called ts-esm-port

Changed:

Remaining to do: