我正在尝试使用node.js中的此链接(https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-recent.json.zip)下载文件
这是代码
var express = require('express');
var router = express.Router();
const https = require('https');
// Get All Records
router.get('/', function(req, res, next) {
const request = https.get("https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-recent.json.zip", (response)=> {
console.log(response);
});
});
module.exports = router;
请帮助下载zip文件。