
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
bun-plugin-env
Advanced tools
A simple loader for your dotenv files.
.env
file loader.env
, .env.local
, .env.staging
, .env.development
, .env.dev
, .env.beta
etc.bun install -d bun-plugin-env
Next, ensure you are preloading the plugin in your bunfig.toml
:
preload = [
"./node_modules/bun-plugin-env/src/index.ts",
# ...
]
You may now use it in your project:
import env from './.env'
// Accessing environment variables
const apiKey = env.API_KEY
const databaseUrl = env.DATABASE_URL
console.log(`API Key: ${apiKey}`)
console.log(`Database URL: ${databaseUrl}`)
bun test
Please see our releases page for more information on what has changed recently.
Please review the Contributing Guide for details.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Stacks Discord Server
You will always be free to use any of the Stacks OSS software. We would also love to see which parts of the world Stacks ends up in. Receiving postcards makes us happy—and we will publish them on our website.
Our address is: Stacks.js, 5710 Crescent Park #107, Playa Vista 90094, CA.
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
Many thanks to the following core technologies & people who have contributed to this package:
The MIT License (MIT). Please see LICENSE for more information.
Made with 💙
FAQs
A simple Bun plugin to load .env files as modules.
The npm package bun-plugin-env receives a total of 782 weekly downloads. As such, bun-plugin-env popularity was classified as not popular.
We found that bun-plugin-env demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.