@vim-crouwel/cfpc
Version:
TypeScript library for calculating CO2 emissions from food, energy, and transportation
23 lines (22 loc) • 778 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTransportation = getTransportation;
exports.getEnergy = getEnergy;
exports.getFood = getFood;
const carbon_footprint_json_1 = __importDefault(require("../data/carbon-footprint.json"));
// Type assertion for each category
const transportation = carbon_footprint_json_1.default["transportation"];
const energy = carbon_footprint_json_1.default["energy"];
const food = carbon_footprint_json_1.default["food"];
function getTransportation() {
return transportation;
}
function getEnergy() {
return energy;
}
function getFood() {
return food;
}