-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update index.js to allow adding got opts #25
Conversation
Codecov Report
@@ Coverage Diff @@
## master #25 +/- ##
=========================================
+ Coverage 92.64% 92.75% +0.1%
=========================================
Files 2 2
Lines 68 69 +1
=========================================
+ Hits 63 64 +1
Misses 5 5
Continue to review full report at Codecov.
|
@noname001 Could you show the case when this is needed? |
@vitalets Google Translate has request limits to avoid them - need to use a proxy: const translate = require('@vitalets/google-translate-api'),
tunnel = require('tunnel');
translate('Ik spreek Engels', {to: 'en'}, {agent: tunnel.httpsOverHttp({
proxy: {
host: 'whateverhost',
proxyAuth: "user:pass",
port: '8080',
headers: {
'User-Agent': 'Node'
}
}
})}) |
Yes, that's useful! |
Readme - well done. What tests should check? Even if tests are necessary, I do not have enough time to write them. Sorry.. |
I think single test for a particular |
No description provided.