Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/dotenv/parse.ts>parse

The Deno Standard Library
Go to Latest
function parse
import { parse } from "https://deno.land/std@0.222.1/dotenv/parse.ts";

Parse .env file output in an object.

Examples

Example 1

import { parse } from "https://deno.land/std@0.222.1/dotenv/parse.ts";

const env = parse("GREETING=hello world");
env.GREETING; // "hello world"

Parameters

rawDotenv: string

Returns

Record<string, string>