dotenv
.env
ファイルから変数を取得するmodule
/icons2/deno.icon
https://deno.land/x/dotenv
/icons/GitHub.icon
pietvanzoen/deno-dotenv
使い方
--allow-read
が必要です
code:ts
import { config } from "
https://deno.land/x/dotenv@v2.0.0/mod.ts";
console.log(config()); // .envの中身が{"key": "value"}形式で出力される