Stringify an object into a valid .env file format.
.env
object to be stringified
string of object
import { stringify } from "@std/dotenv/stringify";import { assertEquals } from "@std/assert";const object = { GREETING: "hello world" };assertEquals(stringify(object), "GREETING='hello world'"); Copy
import { stringify } from "@std/dotenv/stringify";import { assertEquals } from "@std/assert";const object = { GREETING: "hello world" };assertEquals(stringify(object), "GREETING='hello world'");
Stringify an object into a valid
.envfile format.