New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ordered-regions

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

ordered-regions

submit out of order data and receive that data ordered sequentially and/or in blocks

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

ordered-regions

submit out of order objects and receive that data ordered sequentially and/or in groups

install

$ npm install ordered-regions

usage

const OrderedRegions = require("../ordered-regions");

const TOTAL = 32;
const or = OrderedRegions({
  total: TOTAL,
  groups: 8
});

or.onEach((item) => {
  console.log('item recevied in order');
});

or.onGroup((items) => {
  console.log('ordered group of items recevied');
});

or.onComplete(() => {
  console.log('finished ordering items');
});

for (let i = TOTAL; i >= 0; i--) {
  or.submit({id: i});
}

Keywords

array

FAQs

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