nodejs-file-downloader
Advanced tools
Comparing version 4.7.1 to 4.7.2
@@ -0,1 +1,7 @@ | ||
## 4.7.2 31/07/2021 | ||
### Added | ||
- Added concurrency test. | ||
## 4.7.1 20/06/2021 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "nodejs-file-downloader", | ||
"version": "4.7.1", | ||
"version": "4.7.2", | ||
"description": "A file downloader for NodeJs", | ||
@@ -10,2 +10,3 @@ "main": "Downloader.js", | ||
"test-timeout": "mocha timeout-cancellation.test.js", | ||
"test-concurrency": "mocha concurrency.test.js", | ||
"test-watch": "nodemon --exec \"npm test\"" | ||
@@ -12,0 +13,0 @@ }, |
@@ -130,2 +130,17 @@ | ||
app.get('/koala',async(req,res)=>{ | ||
const read = fs.createReadStream('./fixtures/Koala.jpg',{highWaterMark:2000}); | ||
const modifiedStream = Readable.from((async function* () { | ||
for await (const chunk of read) { | ||
yield chunk | ||
} | ||
})()); | ||
modifiedStream.pipe(res); | ||
}) | ||
const server = app.listen(port, () => { | ||
@@ -132,0 +147,0 @@ console.log(port) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190545
20
2130
7