0.5.0 โ€ข Published 2 years ago

beenvo v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Build Status Coverage Status NPM version Code Size License

Features

  • ๐Ÿฆ„ ย  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.
  • ๐Ÿงผ 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.

License


MIT ยฉ Imed Jaberi

0.3.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago