We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To remove the dependency node-fetch consider writing an HTTP client to download a Github release asset to disk. Note it must
node-fetch
ChainSafe/lodestar#1783 (comment)
Proposed initial code by @mpetrunic
const https = require('https'); const fs = require('fs'); const file = fs.createWriteStream("./binding.node"); const request = https.get("<release url>", (response) => { if(response.statusCode == 302) { https.get(response.headers.location, (res) => { res.pipe(file); }) } else { response.pipe(file); } });
The text was updated successfully, but these errors were encountered:
Closing. node-fetch removed by #131
Sorry, something went wrong.
No branches or pull requests
To remove the dependency
node-fetch
consider writing an HTTP client to download a Github release asset to disk. Note it mustChainSafe/lodestar#1783 (comment)
Proposed initial code by @mpetrunic
The text was updated successfully, but these errors were encountered: