Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-iterator-pipe

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-iterator-pipe - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.codecov.yml

21

package.json
{
"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

test.js

@@ -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()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc