Skip to main content
Module

x/wcarbon/deno.json

Access Website Carbon's API for checking carbon emissions for websites with Deno.
Latest
File
{ "name": "@timharek/wcarbon", "version": "3.0.4", "description": "Query webpages (URLs) via Website Carbons API.", "exports": { ".": "./mod.ts", "./cli": "./src/cli.ts" }, "tasks": { "run": "deno run --allow-net=api.websitecarbon.com,api.github.com src/cli.ts", "check": "deno lint && deno fmt --check && deno check **/*.ts", "setup:hooks": "deno run -A -r https://deno.land/x/githooks/githooks.ts", "test": "deno test --allow-net=api.websitecarbon.com,api.github.com" }, "githooks": { "pre-commit": "check", "pre-push": "check" }, "lint": { "include": [ "./" ], "rules": { "tags": [ "recommended" ], "include": [ "explicit-function-return-type" ], "exclude": [ "no-slow-types" ] } }, "fmt": { "include": [ "./" ], "useTabs": false, "lineWidth": 80, "indentWidth": 2, "singleQuote": true, "proseWrap": "preserve" }, "exclude": [ "**/*.md" ]}