open-index/open-npm huggingface dataset:
npm package: @rsoram/pp-limit
Description: Parallel Promise Limiter (pp-limit) 是一个 Promise 并发控制器，可以控制同时进行的任务数量。
Latest version: 0.0.1

# pp-limit

Parallel Promise Limiter (pp-limit) 是一个 Promise 并发控制器，可以控制同时进行的任务数量。

## 使用

### 初始化

```ts
// 允许同时运行 5 个任务的并行控制器
const ppl = new PPLimiter(5);
```

### add - 添加任务

`add` 函数返回的 Promise 可视作输入的 Promise

```ts
const ppl = new PPLimiter(5);
ppl
  .add(() => new Promise((resolve) => resolve(1)))
  .then((result) => console.log(`${result} == 1`)); // 1 == 1
```

#### Example: 并发控制

```ts
const ppl = new PPLimiter(5);
const tasks = Array.from(
  { length: 20 },
  (_, i) => () => new Promise((resolve) => resolve(i)),
);
await Promise.all(tasks.map((t) => ppl.add(t)));
```
npm package: @rsousacode/date-picker-svelte
Description: Date and time picker for Svelte using px instead of rem and CSS changes to be compatible with Beercss.
Author: Kasper Henningsen
Latest version: 2.3.1

# Date Picker Svelte

[![NPM](https://img.shields.io/npm/v/date-picker-svelte.svg)](https://npmjs.com/package/date-picker-svelte)
[![License](https://img.shields.io/npm/l/date-picker-svelte.svg)](LICENSE)
[![NPM Downloads](https://img.shields.io/npm/dm/date-picker-svelte.svg)](https://npmjs.com/package/date-picker-svelte)
[![test](https://github.com/probablykasper/date-picker-svelte/actions/workflows/test.yml/badge.svg)](https://github.com/probablykasper/date-picker-svelte/actions/workflows/test.yml)

Date and time picker for Svelte

Features:
- Theming
- Custom formats
- Internationalization (i18n)
- Autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format)
- Keyboard shortcuts

[Demo](https://date-picker-svelte.kasper.space/demo) • [Documentation](https://date-picker-svelte.kasper.space/docs) • [REPL](https://svelte.dev/repl/044911429c4b4e659362518d9a5deaae?version=3)

![](Screenshot.png)

## Install

```
npm install date-picker-svelte
```

## Usage

```svelte
<script>
  import { DateInput } from 'date-picker-svelte'
  let date = new Date()
</script>

<DateInput bind:value={date} />
```

Check the [docs](https://date-picker-svelte.kasper.space/docs) to learn more

## Contributing

### Get started

1. Install Node.js (v14 works)
2. Run `npm install`

### Commands

- `npm run dev`: Start site in dev mode
- `npm run build`: Build package and site
- `npm run preview`: Preview production site
- `npm run check`: Run `svelte-check`
- `npm run test`: Run tests
- `npm run format`: Format code

### Publish new version

1. Update `CHANGELOG.md`
2. Check for errors
    ```
    npm run lint
    ```
3. Bump the version number
    ```
    npm version --no-git-tag <version>
    ```
4. Generate the package
    ```
    npm run build:package
    ```
5. Publish the package
    ```
    npm publish ./package
    ```
6. Commit with a tag in format "v#.#.#"
7. Create GitHub release with release notes
npm package: @rspack-canary/binding
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding

Private node binding crate for rspack.

> Rspack's internal package, don't use it directly in your project, This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## Update Wasm binding

The generation of `rspack.wasi-browser.js` and `rspack.wasi.js` is disabled by default because `@napi/cli` produces unstable output for these files. To update the Wasm bindings, add `wasm32-wasip1-threads` to the `napi.targets` field in `package.json` before building the project.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-darwin-arm64
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-darwin-arm64

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-darwin-x64
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-darwin-x64

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-linux-arm64-gnu
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-arm64-gnu

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-linux-arm64-musl
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-arm64-musl

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-linux-x64-gnu
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-x64-gnu

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-linux-x64-musl
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-x64-musl

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-wasm32-wasi
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-wasm32-wasi

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-win32-arm64-msvc
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-win32-arm64-msvc

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-win32-ia32-msvc
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-win32-ia32-msvc

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/binding-win32-x64-msvc
Description: Node binding for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-win32-x64-msvc

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/browser
Description: Rspack for running in the browser. This is still in early stage and may not follow the semver.
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/browser

Rspack for running in the browser. This is still in early stage and may not follow the semver.

## Documentation

See <https://rspack.rs/api/javascript-api/browser> for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/cli
Description: CLI for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/cli

Command-line interface for rspack.

## Installation

```bash
pnpm add -D @rspack/cli
# or
npm install -D @rspack/cli
# or
yarn add -D @rspack/cli
```

## Required dependencies

The `rspack dev` and `rspack preview` commands require [@rspack/dev-server](https://www.npmjs.com/package/@rspack/dev-server) to be installed as a peer dependency:

```bash
pnpm add -D @rspack/dev-server
# or
npm install -D @rspack/dev-server
# or
yarn add -D @rspack/dev-server
```

If you try to use these commands without installing `@rspack/dev-server`, you will see a helpful error message with installation instructions.

## Wasm test

See [@rspack/test-tools](../rspack-test-tools) for details.

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/core
Description: Fast Rust-based bundler for the web with a modernized webpack API
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/core

Fast Rust-based bundler for the web with a modernized webpack API.

## Documentation

See <https://rspack.rs> for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-canary/test-tools
Description: Test tools for rspack
Latest version: 2.0.0-canary-3b4b87b1-20260410175404

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/test-tools

> Rspack's internal test tools, don't use it directly in your project, it may contain breaking change in minor & patch release right now.

Test tools for rspack.

## Wasm tests

We expect to reuse the tests for Rspack wasm target as many as possible and we have managed to do it partially. Currently wasm tests should be run with an environment variable `WASM=1` under the following limitations:

1. Node 20 is required, which is consistent with the Node version in StackBlitz.
2. Set `maxWorkers` to `1`, `maxConcurrency` to `1` and disable concurrent mode to avoid flaky failures.
3. `forceExit` is needed.

Also check all the skipped testcases with `!process.env.WASM` in `test.filter.js`s and the skipped testsuits in `rstest.config.ts`s. They are divided into two categories:

1. Skip due to lacks of api support, such as tests related to swc wasm plugins, pnp and profiling. We skip them to avoid obsolete snapshot errors.
2. Skip temporarily and should be investigate in the future. There could be something wrong with test harness and rspack wasm itself. Since it could be time-consuming to figure out all of them so in this stage we use the wasm test ci to avoid the regression rather than improve its stability.

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding

Private node binding crate for rspack.

> Rspack's internal package, don't use it directly in your project, This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## Update Wasm binding

The generation of `rspack.wasi-browser.js` and `rspack.wasi.js` is disabled by default because `@napi/cli` produces unstable output for these files. To update the Wasm bindings, add `wasm32-wasip1-threads` to the `napi.targets` field in `package.json` before building the project.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-darwin-arm64
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-darwin-arm64

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-darwin-x64
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-darwin-x64

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-linux-arm64-gnu
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-arm64-gnu

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-linux-arm64-musl
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-arm64-musl

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-linux-x64-gnu
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-x64-gnu

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-linux-x64-musl
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-linux-x64-musl

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-win32-arm64-msvc
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-win32-arm64-msvc

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-win32-ia32-msvc
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-win32-ia32-msvc

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/binding-win32-x64-msvc
Description: Node binding for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/binding-win32-x64-msvc

Private node binding crate for rspack.

This package does _NOT_ follow [semantic versioning](https://semver.org/).

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/browser
Description: Rspack for running in the browser. This is still in early stage and may not follow the semver.
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/browser

Rspack for running in the browser. This is still in early stage and may not follow the semver.

## Documentation

See <https://rspack.rs/api/javascript-api/browser> for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/cli
Description: CLI for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/cli

Command-line interface for rspack.

## Installation

```bash
pnpm add -D @rspack/cli
# or
npm install -D @rspack/cli
# or
yarn add -D @rspack/cli
```

## Required dependencies

The `rspack dev` and `rspack preview` commands require [@rspack/dev-server](https://www.npmjs.com/package/@rspack/dev-server) to be installed as a peer dependency:

```bash
pnpm add -D @rspack/dev-server
# or
npm install -D @rspack/dev-server
# or
yarn add -D @rspack/dev-server
```

If you try to use these commands without installing `@rspack/dev-server`, you will see a helpful error message with installation instructions.

## Wasm test

See [@rspack/test-tools](../rspack-test-tools) for details.

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/core
Description: Fast Rust-based bundler for the web with a modernized webpack API
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/core

Fast Rust-based bundler for the web with a modernized webpack API.

## Documentation

See <https://rspack.rs> for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).
npm package: @rspack-debug/test-tools
Description: Test tools for rspack
Latest version: 2.0.0-rc.0

<picture>
  <img alt="Rspack Banner" src="https://assets.rspack.rs/rspack/rspack-banner.png">
</picture>

# @rspack/test-tools

> Rspack's internal test tools, don't use it directly in your project, it may contain breaking change in minor & patch release right now.

Test tools for rspack.

## Wasm tests

We expect to reuse the tests for Rspack wasm target as many as possible and we have managed to do it partially. Currently wasm tests should be run with an environment variable `WASM=1` under the following limitations:

1. Node 20 is required, which is consistent with the Node version in StackBlitz.
2. Set `maxWorkers` to `1`, `maxConcurrency` to `1` and disable concurrent mode to avoid flaky failures.
3. `forceExit` is needed.

Also check all the skipped testcases with `!process.env.WASM` in `test.filter.js`s and the skipped testsuits in `rstest.config.ts`s. They are divided into two categories:

1. Skip due to lacks of api support, such as tests related to swc wasm plugins, pnp and profiling. We skip them to avoid obsolete snapshot errors.
2. Skip temporarily and should be investigate in the future. There could be something wrong with test harness and rspack wasm itself. Since it could be time-consuming to figure out all of them so in this stage we use the wasm test ci to avoid the regression rather than improve its stability.

## Documentation

See [https://rspack.rs](https://rspack.rs) for details.

## License

Rspack is [MIT licensed](https://github.com/web-infra-dev/rspack/blob/main/LICENSE).