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

nuxt-parallel-limit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-parallel-limit

Run multiple fetch with limited concurrency

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

nuxt-parallel-limit

Run multiple fetch with limited concurrency

npm version npm downloads License Nuxt

Installation

Install and add nuxt-parallel-limit to your nuxt.config.

npm install -D nuxt-parallel-limit
yarn add -D nuxt-parallel-limit
pnpm add -D nuxt-parallel-limit
export default defineNuxtConfig({
  modules: ['nuxt-parallel-limit'],
})

Configuration

You can pass configuration to the module in the nuxt.config like following:

export default defineNuxtConfig({
  modules: ['nuxt-parallel-limit'],
  parallelLimit: {
    patterns: [
      {
        pattern: 'https://jsonplaceholder.typicode.com',
        limit: 2
      }
    ]
  },
})

pattern:

  • Type: string
  • Details: The pattern specifies a regular expression the fetch url should match. If the fetch url matches the specified pattern, the fetch will be limited by the limit attribute.

limit:

  • Type: number
  • Details: Limit the maximum number of concurrent.

Development

  • Clone this repository
  • Install dependencies using pnpm install
  • Stub module with pnpm dev:prepare
  • Run pnpm dev to start playground in development mode

License

Made with ❤️

Published under the MIT License.

Keywords

nuxt

FAQs

Package last updated on 30 Jul 2023

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