You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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
Weekly downloads
36
increased by3500%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v0.5.0 (08 Jan 2022)

  • improve the check behave for default value.

Readme

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc