gamontal / mongolab-data-api

⚠️ This repository is no longer maintained.
MIT License
7 stars 5 forks source link

require issues #2

Open cavoom opened 6 years ago

cavoom commented 6 years ago

This is a great module - thank you. I notice that some of my apps (Alexa Skills) have trouble with the require format:

var mLab = require('mongolab-data-api')('yourKeyHere')

Is there a way to hardcode my API Key into the code somewhere and change the require to

var mLab = require('mongolab-data-api')

Thank you!

King-Knight-Mare commented 5 years ago

You could just rewrite the module so that your api key is hardcoded in. But that won't work in the long term if you choose to deploy your 'Alexa Skills' apps. I hope this helps