Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hishprorg/officia-incidunt

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hishprorg/officia-incidunt

This packages lets you autoload your environment variables from your `.env` file, no code changes required.

  • 4.3.75
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

@hishprorg/officia-incidunt

This packages lets you autoload your environment variables from your .env file, no code changes required.

Similar to dotenv, but with zero-dependencies and less verbose.

Easy as:

yarn add @hishprorg/officia-incidunt
node -r @hishprorg/officia-incidunt index.js # autoloads .env file

Features:

  • auto-detect of .env.<NODE_ENV> or .env file
  • support for custom .env filename with ENVK environment variable
  • support for variable expansiong
  • support for single quotes
  • support for double quotes
  • support for empty lines
  • support for multiline quoting with double quotes "SECRET=hello\nworld"
  • support for comments prefixing the line with #

You can see what's happening inspecting index.js.

Nothing more, nothing less.

Usage

Load envs from .env:

node -r @hishprorg/officia-incidunt index.js

Load envs from .env.production file, otherwise .env:

NODE_ENV=production node -r @hishprorg/officia-incidunt index.js

Load envs from specific file:

ENVK=file.env node -r @hishprorg/officia-incidunt index.js

Log to console imported variables:

ENVK_DEBUG=1 node -r @hishprorg/officia-incidunt index.js

Keywords

FAQs

Package last updated on 28 Aug 2024

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