close
Skip to main content
This release is versions behind 0.225.7 — the latest version of @std/dotenv.
Works with
This package works with DenoIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
JSR Score94%
Downloads17,896/wk
Published2 years ago (0.214.0)

UNSTABLE: Parsing and loading environment variables from a `.env` file

function stringify
stringify(object: Record<string, string>): string

Stringify an object into a valid .env file format.

Examples

Example 1

import { stringify } from "@std/dotenv/stringify";

const object = { GREETING: "hello world" };
const string = stringify(object); // GREETING='hello world'

Parameters

object: Record<string, string>

object to be stringified

Return Type

string of object

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/dotenv

Import symbol

import { stringify } from "@std/dotenv";
or

Import directly with a jsr specifier

import { stringify } from "jsr:@std/dotenv";