New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

async-generators

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-generators

convenience package combining the @async-generator packages

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-72.22%
Maintainers
1
Weekly downloads
 
Created
Source

async-generators

logo

convenience package combining the down-compiled @async-generators packages

NPM version Travis Status Coverage Dependencies Greenkeeper

Exports

equal

@async-generators/equal

compare two iterator sequences for equality

let sequence = async function* () {
  yield 1; yield 2; yield 3;
}

let result = await equal(sequence(), sequence());

Typescript

This library is fully typed and can be used by importing the methods you want to use.

foo.ts

import {equal} from 'async-generators');

async function main(){
  let sequence = async function* () {
    yield 1; yield 2; yield 3;
  }

  let result = await equal(sequence(), sequence());
  
  console.log("equal:", result);
}

main();

It is also possible to directly execute your properly configured typescript with ts-node:

ts-node --harmony_async_iteration foo.ts

Keywords

FAQs

Package last updated on 21 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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