Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tsirysndr/env-js
- Owner: tsirysndr
- License: mit
- Created: 2024-03-03T11:55:26.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-05T06:40:54.000Z (10 months ago)
- Last Synced: 2024-11-14T00:07:26.943Z (about 1 month ago)
- Topics: bun, deno, environment-variables, nodejs
- Language: TypeScript
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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'));
```