@zugriff/env
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@zugriff/env

This package is part of the zugriff ecosystem. It runs on your machine using the dotenv package and on Edge Runtimes using a vendor-native approach.

Usage

npm i --save @zugriff/env

Loading Environment Variables

import { loadEnvironment } from '@zugriff/env';

await loadEnvironment();

console.log(process.env.HELLO);

You can also retreive environment variables from a specific location by providing a dotenv configuration object.

await loadEnvironment({ path: '.env.development' });

Package Sidebar

Install

npm i @zugriff/env

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.22 kB

Total Files

8

Last publish

Collaborators

  • lucagoslar