async-iterator-pipe
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "async-iterator-pipe", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Pipe between async iterators and streams", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "tap test.js" | ||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"test": "standard && nyc tap test.js" | ||
}, | ||
@@ -18,4 +19,16 @@ "keywords": [ | ||
"devDependencies": { | ||
"tap": "^12.5.2" | ||
} | ||
"codecov": "^3.2.0", | ||
"nyc": "^13.3.0", | ||
"standard": "^12.0.1", | ||
"tap": "^12.6.1" | ||
}, | ||
"dependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Qard/async-iterator-pipe.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/Qard/async-iterator-pipe/issues" | ||
}, | ||
"homepage": "https://github.com/Qard/async-iterator-pipe#readme" | ||
} |
# async-iterator-pipe | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/Qard/async-iterator-pipe.svg)](https://greenkeeper.io/) | ||
Pipe between async iterators and streams. | ||
@@ -4,0 +6,0 @@ |
@@ -7,3 +7,3 @@ const { PassThrough } = require('stream') | ||
async function* produceIterator (n) { | ||
async function * produceIterator (n) { | ||
for (let i = 0; i < n; i++) { | ||
@@ -24,3 +24,3 @@ yield `produced "${i}"\n` | ||
async function* splitLines (iterator) { | ||
async function * splitLines (iterator) { | ||
let buffer = '' | ||
@@ -61,7 +61,6 @@ for await (let item of iterator) { | ||
}) | ||
tap.test('iterator -> iterator', async t => { | ||
t.plan(5) | ||
async function* upper (iterator) { | ||
async function * upper (iterator) { | ||
for await (let item of iterator) { | ||
@@ -68,0 +67,0 @@ yield item.toString().toUpperCase() |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6065
6
1
0
63
0
4