Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

require issues #2

Open
cavoom opened this issue Sep 11, 2017 · 1 comment
Open

require issues #2

cavoom opened this issue Sep 11, 2017 · 1 comment

Comments

@cavoom
Copy link

cavoom commented Sep 11, 2017

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants