envsub - NPM - envsub is envsubst for Node.js

  •        55

envsub is envsubst for Node.js, providing file-level environment variable substitution, catering for both global CLI and local promise-based usage. envsub works with any file format - e.g. HTML, JSON, text, etc. - and has built-in .env file support.

https://github.com/danday74/envsub#readme

Dependencies:

bluebird : ^3.5.0
chalk : ^1.1.3
commander : ^2.9.0
diff : ^3.2.0
handlebars : ^4.0.6
lodash : ^4.17.4

Tags
Implementation
License
Platform

   




Related Projects

cross-env - 🔀 Cross platform setting of environment scripts

  •    Javascript

Most Windows command prompts will choke when you set environment variables with NODE_ENV=production like that. (The exception is Bash on Windows, which uses native Bash.) Similarly, there's a difference in how windows and POSIX commands utilize environment variables. With POSIX, you use: $ENV_VAR and on windows you use %ENV_VAR%.cross-env makes it so you can have a single command without worrying about setting or using the environment variable properly for the platform. Just set it like you would if it's running on a POSIX system, and cross-env will take care of setting it properly.

sync-dotenv - Keep your .env in sync with .env.example

  •    TypeScript

Projects often rely on environmental variables stored in a .env file to run... and because these variables sometimes contain sensitive data, we never add them to source control. Instead, these variables are added e.g. to a .env.example file so it's easy to get the project running for other developers. However, it's very easy to forget to update this file when a variable is added/updated in .env (during development). This can make it difficult for devs to get the project running (locally) because they rely on .env.example file to setup their environment (with their own configs). sync-dotenv automates the process of keeping your .env in sync with .env.example.

dotenv - Loads environment variables from .env for nodejs projects.

  •    Javascript

Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.As early as possible in your application, require and configure dotenv.

godotenv - A Go port of Ruby's dotenv library (Loads environment variables from `.env`.)

  •    Go

Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables. But it is not always practical to set environment variables on development machines or continuous integration servers where multiple projects are run. Dotenv load variables from a .env file into ENV when the environment is bootstrapped.

dotenv - A Ruby gem to load environment variables from `.env`.

  •    Ruby

Shim to load environment variables from .env into ENV in development. Storing configuration in the environment is one of the tenets of a twelve-factor app. Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.


dotenv-safe - Load environment variables from .env and ensure they are all present

  •    Javascript

Identical to dotenv, but ensures that all necessary environment variables are defined after reading from .env. These needed variables are read from .env.example, which should be commited along with your project. If all the required variables were successfully read but an error was thrown when trying to read the .env file, the error will be included in the result object under the error key.

react-redux-realworld-example-app - Exemplary real world application built with React + Redux

  •    Javascript

Originally created for this GH issue. The codebase is now feature complete; please submit bug fixes via pull requests & feedback via issues.Local web server will use port 4100 instead of standard React's port 3000 to prevent conflicts with some backends like Node or Rails. You can configure port in scripts section of package.json: we use cross-env to set environment variable PORT for React scripts, this is Windows-compatible way of setting environment variables.

CommAI-env - A platform for developing AI systems as described in A Roadmap towards Machine Intelligence - http://arxiv

  •    Python

CommAI-env (Environment for Communication-based AI) is an experimental platform for training and evaluating AI systems as described in A Roadmap towards Machine Intelligence. CommAI-env is a platform for training and testing an AI system, the Learner (coded in an arbitrary language of the system developer's choice), in a communication-based setup where it interacts via a bit-level interface with an Environment. The Environment asks the Learner to solve a number of communication-based Tasks, and assigns it a Reward for each task instance it successfully completes.

mach-nix - Create highly reproducible python environments

  •    Python

Mach-nix makes it easy to create and share reproducible python environments or packages. Existing tools for python package management often suffer from reproducibility and complexity issues, requiring a multitude of tools and additional virtualization layers to work sufficiently. Mach-nix aims to solve these problems by providing a simple way to use nix, a revolutionary build system which is known to achieve great reproducibility and portability besides many other advantages. The ./env directory contains a portable and reproducible definition of your python environment. To reuse this environment on another system, just copy the ./env directory and use nix-shell to activate it.

n - Node version management

  •    Shell

Node.js version management: no subshells, no profile setup, no convoluted API, just simple.to install n to bin/n of the directory specified in the environment variable $PREFIX, which defaults to /usr/local (note that you will likely need to use sudo). To install n in a custom location (such as $CUSTOM_LOCATION/bin/n), run PREFIX=$CUSTOM_LOCATION make install.

wrangler-action - 🧙‍♀️ zero-config cloudflare workers application deployment using wrangler and github actions

  •    Shell

Optionally, you can also pass a workingDirectory key to the action. This will allow you to specify a subdirectory of the repo to run the Wrangler command from. Worker secrets can be optionally passed as a new line deliminated string of names in secrets. Each secret name must match an environment variable name specified in the env attribute. Creates or replaces the value for the Worker secret using the wrangler secret put command.

dev-env console based build environment

  •    C

dev-env is a console based build environment. It aims at making the build process compiler and platform independent. It allows to compile/link/etc. your project(s) without modifications on all supported platforms and with all supported compilers.

grunt-preprocess - Preprocess files based off environment configuration

  •    Javascript

The additional context on top of ENV that should be passed to templates. If NODE_ENV is not set, the task sets it to development by default.

highway-env - A minimalist environment for decision-making in autonomous driving

  •    Python

An episode of one of the environments available in highway-env. In this task, the ego-vehicle is driving on a multilane highway populated with other vehicles. The agent's objective is to reach a high speed while avoiding collisions with neighbouring vehicles. Driving on the right side of the road is also rewarded.

env - A KISS way to deal with environment variables in Go.

  •    Go

A KISS way to deal with environment variables in Go. At first, it was boring for me to write down an entire function just to get some var from the environment and default to another in case it's missing.

django-dotenv - Loads environment variables from .env

  •    Python

foreman reads from .env. manage.py doesn't. Let's fix that.Original implementation was written by @jacobian.

better-npm-run - Better NPM scripts runner

  •    Javascript

The betterScripts script definition can either be a string or sub-object with command and env attributes. Values defined in the env block will override previously set environment variables. Note that depending on the OS and terminal you're using, dots, spaces or other special characters in the command path may be treated as separators and the command will be parsed wrong.

phpdotenv - Loads environment variables from `

  •    PHP

Loads environment variables from .env to getenv(), $_ENV and $_SERVER automagically. This is a PHP version of the original Ruby dotenv.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.