DEFENDORe / pseudotv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
MIT License
234 stars 36 forks source link

Migrate from CommonJS to ECMAScript #20

Open rafaelvieiras opened 4 years ago

rafaelvieiras commented 4 years ago

Node decide dropout CommonJs in 2013, so it's a good thing to change from CSM to ESM. It's better to develop, and can execute good practices.

https://en.wikipedia.org/wiki/CommonJS https://github.com/nodejs/node-v0.x-archive/issues/5132#issuecomment-15432598

I'm start to work on this for my issue #19 , most specific the server part of issue, to use multiple services (plex, emby, jellyfin).

I don't do a PR for now, but please, see this commit to have an idea: https://github.com/rafaelvieiras/pseudotv/commit/d531168dee158d10193b6c088314cb66f515000d