Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Created June 7, 2016 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apaleslimghost/60c31415205e7d9c822ba2816f8d4139 to your computer and use it in GitHub Desktop.
Save apaleslimghost/60c31415205e7d9c822ba2816f8d4139 to your computer and use it in GitHub Desktop.
module.exports = () => Object.keys(process.env).filter(key => key.match(/^HEROKU/)).reduce((obj, key) => {
obj[key] = process.env[key];
return obj;
}, {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment