npm i -S hubot-dotenv
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
npm i -S hubot-dotenv
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