Module

std/dotenv/mod.ts>stringify

The Deno Standard Library
Latest
function stringify
import { stringify } from "https://dotland.deno.dev/std@0.224.0/dotenv/mod.ts";

Stringify an object into a valid .env file format.

Examples

Example 1

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

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

Parameters

object: Record<string, string>

object to be stringified

Returns

string

string of object