Socket
Socket
Sign inDemoInstall

beenvo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beenvo

Beenvo let you loads environment variables from files (support many files extensions) for Node.js projects.


Version published
Maintainers
1
Created
Source

Beenvo



Build Status Coverage Status NPM version Code Size License


Beenvo let you loads environment variables from files (support many files extensions) for Node.js projects into `process.env` ๐Ÿ.

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

Keywords

FAQs

Package last updated on 08 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc