Socket
Socket
Sign inDemoInstall

eb-env

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eb-env

Add config files to your elastic beanstalk project to seed environment information. Use module to get environment info in your app.


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
1.27 MB
Created
Weekly downloads
 

Readme

Source

eb-env

Add config files to your elastic beanstalk project to seed environment information. Use module to get environment info in your app.

Installation

To get command line tool:

npm install eb-env -g

To add to your project:

npm install eb-env

Usage

Initialize project

From project root:

eb-env init

The above command will add a config file to your .ebextensions directory. The config file will add environment information to a temp file so the eb-env module can consume it.

Use module

var ebEnv = require('eb-env');

var envName = ebEnv.name;

By default, the environment info is loaded from the temp file mentioned above and copied into a file in the module directory (in case the temp file goes away). Alternatively, you can load from a different file:

var ebEnv = require('eb-env');

ebEnv.load('/my/eb-env.json');

var envName = ebEnv.name;

Available environment info

name

The full name of your elastic beanstalk environment.

app.sourceUrl

The URL where the source of your app was retrieved.

app.sourceId

The commit ID of the deployed version of your app.

Keywords

FAQs

Last updated on 10 Dec 2013

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc