1.0.2 • Published 6 years ago
hubot-dotenv-adapter v1.0.2
hubot-dotenv-adapter
About .env
Install
npm i hubot-dotenv-adapter --saveExample
Your .env file:
FOO=953Part of your package.json file:
{
"scripts": {
"start": "hubot-dotenv-adapter -n botname -a matteruser"
}
}Flags: -n botname -a hubot adapter (optional)
Run with npm start
Get environment variables from your bot:
console.log(process.env.FOO);
// 953