jshttp / negotiator

An HTTP content negotiator for Node.js
MIT License
312 stars 34 forks source link

Export ECMAScript modules (ESM) #71

Open dretsa opened 2 weeks ago

dretsa commented 2 weeks 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 2 weeks 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: