-
π¦ Β Inspired from dotenv.
-
π Β Isomorphic to the moon.
-
π₯ Β Blaze and lightweight.
-
π±βπ Β Support many files extensions (not only
.env*
);- β
Β Toml (
*.toml
) support. - β
Β Yaml (
*.yml
and*.yaml
) support. - β
Β Properties (
*.ini
and*.properties
) support. - β
Β Xml (
*.xml
) support. - β
Β Json (
*.json
) support. - β
Β dotEnv (
.env*
) support.
- β
Β Toml (
-
π§Ό 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.
# npm
$ npm install beenvo
# yarn
$ yarn add beenvo
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 π.
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
).
If you have any problem or suggestion please open an issue.
MIT Β© Imed Jaberi