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 417 B
export { calculateCo2 } from './carbon-calculator'; export interface ByteToCo2Props { byteSize: number; country?: string; year?: number; carbonFactor?: number; isDataAdjusted: boolean; } export declare const countries: { code: string; name: string; }[]; export declare const bytesToCo2: ({ byteSize, country, isDataAdjusted }: ByteToCo2Props) => number; //# sourceMappingURL=index.d.ts.map