UNPKG

bytes-to-co2

Version:

Javascript module that calculates the co2 generated in transfer x amount of bytes over the network and the country.

14 lines 448 B
export interface CO2Props { byteSize: number; co2Factor?: number; isDataAdjusted: boolean; } /** * @desc calculate the carbon footprint based on the size, factor and applies an adjustment based on possible * cached files * @param byteSize * @param co2Factor * @param isDataAdjusted */ export declare const calculateCo2: ({ byteSize, co2Factor, isDataAdjusted }: CO2Props) => number; //# sourceMappingURL=carbon-calculator.d.ts.map