1.0.0 • Published 1 year ago

@zugriff/env v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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' });
1.0.0

1 year ago