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

env-url

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-url

NodeJS utility to get environment variables from a URL

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

env-url

A simple node program for executing commands using environment variables supplied by a url

Install

npm install env-url or npm install -g env-url

Usage

Package.json

{
  "scripts": {
    "start": "env-url http://localhost:8000/config/development node ./index.js"
  }
}

Environment File Format

env-url expects to pull JSON down from a URL using a POST. It will turn json into environment variables, including nested json e.g.:

{
  "test": "value",
  "nestedTest": {
    "test": 1
  }
}

becomes:

TEST=value
NESTED_TEST_TEST=1

Why

Because it can be useful to get configuration from an HTTP endpoint

Keywords

FAQs

Package last updated on 25 Feb 2017

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