Created
March 18, 2015 00:47
-
-
Save irrationalistic/1751637b17d887b1805f to your computer and use it in GitHub Desktop.
Wolfram Key Protection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
wolframKey: 'my api key here' | |
}; | |
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config; | |
if(process.env.WOLFRAM_KEY){ | |
config = { | |
wolframKey: process.env.WOLFRAM_KEY | |
}; | |
} else { | |
config = require('/path/to/config.js'); | |
} | |
var wolfram = require('wolfram').createClient(config.wolframKey); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment