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
7 months ago (0.1.3)

env-js

ci

This is a simple package to get the environment variables, it works in different runtimes like Deno, Bun and Node.js.

🚀 Usage

import * as env from 'jsr:@tsirysndr/env-js';

console.log(env.get('HOME'));
console.log(env.has('HOME'));
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@tsirysndr/env-js

Import symbol

import * as mod from "@tsirysndr/env-js";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@tsirysndr/env-js";

Add Package

npx jsr add @tsirysndr/env-js

Import symbol

import * as mod from "@tsirysndr/env-js";

Add Package

yarn dlx jsr add @tsirysndr/env-js

Import symbol

import * as mod from "@tsirysndr/env-js";

Add Package

pnpm dlx jsr add @tsirysndr/env-js

Import symbol

import * as mod from "@tsirysndr/env-js";

Add Package

bunx jsr add @tsirysndr/env-js

Import symbol

import * as mod from "@tsirysndr/env-js";