Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://git.sr.ht/~ruivieira/deno-experiments/blob/master/misc/secrets.ts";

ยงFunctions

readSecrets

Reads secrets from a JSON file from ~/.config/<topic>/<file>. As an example, const s = readSecrets<any>("myapp", "keys.json") will read the values into a JSON object from ~/.config/myapp/keys.json. The values can then be extracted with s.key1, s.key2, etc.