Gathering detailed insights and metrics for webmiddle-service-parallel
Gathering detailed insights and metrics for webmiddle-service-parallel
Gathering detailed insights and metrics for webmiddle-service-parallel
Gathering detailed insights and metrics for webmiddle-service-parallel
Node.js framework for modular web scraping and data extraction
npm install webmiddle-service-parallel
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
14 Stars
575 Commits
2 Forks
2 Watchers
36 Branches
2 Contributors
Updated on Nov 09, 2023
Latest Version
0.3.0
Package Id
webmiddle-service-parallel@0.3.0
Unpacked Size
8.88 kB
Size
4.14 kB
File Count
4
NPM Version
5.6.0
Node Version
8.11.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Its purpose is similar to Pipe, i.e. the execution of services, but they are executed concurrently.
1npm install --save webmiddle-service-parallel
1import { PropTypes, rootContext } from 'webmiddle'; 2import Parallel from 'webmiddle-service-parallel'; 3 4const MyService = () => ( 5 <Parallel name="myResources"> 6 <SubService1 7 name="resource1" 8 /> 9 10 <SubService2 11 name="resource2" 12 {/*...*/} 13 /> 14 15 <SubService3 16 name="resource3" 17 {/*...*/} 18 /> 19 </Parallel> 20); 21 22rootContext.evaluate(<MyService />) 23.then(resource => { 24 console.log(resource.name); // "myResources" 25 console.log(resource.contentType); // "application/json" 26 console.log(resource.content); // { resource1, resource2, resource3 } 27});
If every child is fully synchronous, then its behavior is the
same of Pipe.
In the other end, if the child returns a promise, then such promise will
be added to a pool and the next child will be executed immediately.
The service resolves with a JSON resource whose content is an object
<resource name, resource>
, where the resource names are extracted
directly from the resources returned by the children.
If any of the child fails, then the whole Parallel fails with the error returned by the failed child.
This service also supports a limit property that can be used to limit the maximum number of concurrent tasks that should be running at any given time. If limit is 1, then the children will be executed in order, one after another, similarly to the Pipe service.
Name | Description |
---|---|
name | The name of the returned resource. |
limit (optional) | An integer for setting the maximum concurrency. |
children | The tasks to execute. |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
82 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More