thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
https://developers.thegreenwebfoundation.org/
Other
421 stars 55 forks source link

Remove SQLIte from co2.js #22

Closed mrchrisadams closed 4 years ago

mrchrisadams commented 4 years ago

This PR removes the hard dependency on better-sqlite, and instead provides the list of 'green' domains to check as a JSON file.

You can still use sqlite, but you need to install from a separate module.

mrchrisadams commented 4 years ago

Hi @soulgalore I've had a think, and I've come round to your way of thinking about having sqlite as an entirely separate module.

If this passes, feel free to merge this in - I'll make a separate module for sqlite instead.