Skip to main content

Built and signed on GitHub Actions

Get environment variables in Deno, Bun and Node.js

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
6 months ago (0.1.3)
function toObject
toObject(): Record<string, string>

Convert the environment variables to an object

Examples

Example 1

import * as env from "jsr:@tsirysndr/env-js";
console.log(env.toObject());

Return Type

Record<string, string>

Add Package

deno add @tsirysndr/env-js

Import symbol

import { toObject } from "@tsirysndr/env-js";

Add Package

npx jsr add @tsirysndr/env-js

Import symbol

import { toObject } from "@tsirysndr/env-js";

Add Package

yarn dlx jsr add @tsirysndr/env-js

Import symbol

import { toObject } from "@tsirysndr/env-js";

Add Package

pnpm dlx jsr add @tsirysndr/env-js

Import symbol

import { toObject } from "@tsirysndr/env-js";

Add Package

bunx jsr add @tsirysndr/env-js

Import symbol

import { toObject } from "@tsirysndr/env-js";