This demonstrates a baseline implementation of the CO2.js NPM package in Bun.
Click the button below to start a new development environment:
In the terminal, run the commands:
bun install --backend=copyfile
(this installs the CO2.js NPM package)bun bun ./index.js
(this generates a node_modules.bun file containing all imported dependencies)bun index.js
(this executes the code!)