Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tsirysndr/env-js

Get environment variables in Deno, Bun and Node.js
https://github.com/tsirysndr/env-js

bun deno environment-variables nodejs

Last synced: about 1 month ago
JSON representation

Get environment variables in Deno, Bun and Node.js

Awesome Lists containing this project

README

        

# env-js

[![](https://jsr.io/badges/@tsirysndr/env-js)](https://jsr.io/@tsirysndr/env-js)
[![ci](https://github.com/tsirysndr/env-js/actions/workflows/ci.yml/badge.svg)](https://github.com/tsirysndr/env-js/actions/workflows/ci.yml)

This is a simple package to get the environment variables, it works in different runtimes like [Deno](https://deno.com/), [Bun](https://bun.sh/) and [Node.js](https://nodejs.org/).

## 🚀 Usage

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

console.log(env.get('HOME'));
console.log(env.has('HOME'));
```