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

promise_mtd

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise_mtd - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

package.json
{
"name": "promise_mtd",
"version": "0.0.8",
"version": "0.0.9",
"description": "Set of methods allowing simplify work with Promises in cycle. Methods: forEach, map, while, transform, parallel",

@@ -5,0 +5,0 @@ "main": "index.js",

# promise_mtd
Set of methods allowing to simplify work with promises in cycle.
Implementation of ```forEach``` and ```map``` for working with array data when it's needed to apply asynchronous function to each element.
Method ```transform``` allows to iterate asynchronously over an array similar to ```map```, but also it can skip unnecessary data.
Method ```transform``` allows to iterate asynchronously over an array similarly to ```map```, but also it can skip unnecessary data.
Implementation of cycle ```while``` for using with promise.
Method ```parallel``` allows to run concurrently promises similar to method ```Promise.all```, but with limit.
Method ```parallel``` allows to run concurrently promises similarly to method ```Promise.all```, but with limit.
The library has no dependencies 😀.

@@ -15,3 +15,3 @@

### foreach(Array<any>, Function(el, index)) || forEach(Array<any>, Function(el, index))
Foreach over promises serially
```Foreach``` over promises serially
```js

@@ -33,3 +33,3 @@ const promiseMtd = require('promise_mtd');

### map(Array<any>, Function(el, index): Promise<any>)
Map over promises serially
```Map``` over promises serially
```js

@@ -51,3 +51,3 @@ const promiseMtd = require('promise_mtd');

### parallel(Array<any>, Function(el, index))
Equalent Promise.all, but with limit
Equivalent of ```Promise.all``` but with limit
```js

@@ -76,3 +76,3 @@ const promiseMtd = require('promise_mtd');

### transform(Array<any>, Function(el, index))
Iterate array and filter over promises
Iterating over an array and filter over promises
```js

@@ -94,3 +94,3 @@ const promiseMtd = require('promise_mtd');

### while(condition: Function(): Boolean, Function)
While over promises serially
```While``` over promises serially
```js

@@ -97,0 +97,0 @@ const promiseMtd = require('promise_mtd');

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