Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socketโs License Enforcement Beta. Set up your License Policy and secure your software!
Beenvo let you loads environment variables from files (support many files extensions) for Node.js projects.
Features
๐ฆ ย Inspired from dotenv.
๐ ย Isomorphic to the moon.
๐ฅ ย Blaze and lightweight.
๐ฑโ๐ ย Support many files extensions (not only .env*
);
*.toml
) support.*.yml
and *.yaml
) support.*.ini
and *.properties
) support.*.xml
) support.*.json
) support..env*
) support.๐งผ Support clean up variables loaded inside process.env
.
๐ ย Support preload (with cli). [๐ง - welcome to any kind of help ๐๐ป]
๐ฑโ๐ค ย Strong competitor to the rest dotEnv modules.
๐ข ย Node.js support.
๐ฆ ย Deno support. [๐ง - welcome to any kind of help ๐๐ป]
๐ ย TypeScript support.
Notes:
Require Node 12+.Installation
# npm
$ npm install beenvo
# yarn
$ yarn add beenvo
Usage
This is a practical example of how to use.
# create your variables file with name `env.yaml`.
SOME_NUMBER: 1000
SOME_STRING: "don't do that"
// const beenvo = require("beenvo");
import beenvo from "beenvo";
const options = { path: "env.yaml" };
beenvo(options);
// process.env.SOME_NUMBER // 1000
// process.env.SOME_STRING // "don't do that"
if you want more example you can check the test folder or open an issue ๐.
OPTIONS
You can pass options object to beenvo;
options.path
โ (String) represent path to the file which contains your variables (default to '.env'
).options.cleanup
โ (Boolean) to remove all loaded variables (default to false
).Support
If you have any problem or suggestion please open an issue.
MIT ยฉ Imed Jaberi
v0.5.0 (08 Jan 2022)
FAQs
Beenvo let you loads environment variables from files (support many files extensions) for Node.js projects.
We found that beenvo demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Ensure open-source compliance with Socketโs License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.