package
Beenvo let you loads environment variables from files (support many files extensions) for Node.js projects.
npm install beenvoGitHub-flavored package documentation.
Across all versions, last 30 days.
25 in 30 days
Runtime metadata.
Tagged topics.
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 beenvoUsageThis 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 😉.
OPTIONSYou 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).SupportIf you have any problem or suggestion please open an issue.
Estimated unpacked size across 8 packages.
5.5 MB
Includes dependencies.
^4.1.0
5.5.0
^1.2.1
1.2.1
^2.2.5
2.2.5