UNPKG

co2-shield

Version:

Calculate the environmental impact of a webpage and display it in your GitHub project as a Shields.io badge.

14 lines (13 loc) 326 B
export default class CO2Shield { private formContainerId; private static ratingDetails; constructor(formContainerId: string); initialize(): void; private createForm; private generateShield; private validateUrl; private fetchCO2Data; private updateUI; private copy; private reset; }