Socket
Book a DemoInstallSign in
Socket

linx

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

linx

> The chain we used to rock back in the days was Cuban links. So Rae came up with the theory, like a Cuban link is one of the roughest chains to break. Only Built 4 Cuban Linx... > Ghostface Killah

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

linx - Graph manipulation tools for IPLD

The chain we used to rock back in the days was Cuban links. So Rae came up with the theory, like a Cuban link is one of the roughest chains to break. Only Built 4 Cuban Linx... Ghostface Killah

API

linx.asyncIter(generatorFunction, dedup=true)

Takes an async generator function and returns a new called generator with special properties.

The generator will only ever produce blocks. If the generator function you pass produces something that isn't a block it will produce an error.

By default, duplicate blocks will not be emitted.

generator.last

Promise that resolves to the last block produced by the generator. This is often the root block of the operation the generator is for.

generator.first

Promise that resolves to the first block produced by the generator.

FAQs

Package last updated on 07 Oct 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