Options
All
  • Public
  • Public/Protected
  • All
Menu

react-carbon-footprint

Index

Functions

  • useCarbonFootprint(): [gramsCO2: number, bytesTransferred: number]
  • Custom hook that calculates the estimated CO2 emissions based on the number of bytes transferred.

    Returns [gramsCO2: number, bytesTransferred: number]

    A tuple containing the total grams of CO2 emitted and the number of bytes transferred.

Generated using TypeDoc