/hubot-dotenv

Hubot + dotenv command line.

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

hubot-dotenv

About .env

dotenv

Install

npm i -S hubot-dotenv

Example

Your .env file:

FOO=42

Part of your package.json file:

{
  "scripts": {
    "start": "hubot-dotenv -n botname"
  }
}

Run npm start

Get environment variables from your bot:

console.log(process.env.FOO);
// 42