open-index/open-npm huggingface dataset:
npm package: @prefer-jsr/npm2jsr
Description: Mapping of NPM packages to their JSR equivalent packages
Author: prefer-jsr
Latest version: 0.9.0

![npm1jsr](./assets/npm2jsr.svg)

# @prefer-jsr/npm2jsr &middot; [![JSR](https://jsr.io/badges/@prefer-jsr/npm2jsr)](https://jsr.io/@prefer-jsr/npm2jsr)

A utility package that provides mapping between NPM packages and their JSR equivalents.

## Installation

```bash
pnpm i jsr:@prefer-jsr/npm2jsr
```

```bash
yarn add jsr:@prefer-jsr/npm2jsr
```

```bash
npx jsr add @prefer-jsr/npm2jsr
```

<details>
<summary>NPM registry (If you really need it for some reason)</summary>

```bash
npm install @prefer-jsr/npm2jsr
```

</details>

## Usage

```typescript
import {
  getJsrEquivalent,
  hasJsrEquivalent,
  toJsrDependency,
} from '@prefer-jsr/npm2jsr';

// Check if a package has a JSR equivalent
if (hasJsrEquivalent('zod')) {
  const jsrPackage = getJsrEquivalent('zod'); // '@zod/zod'
  const jsrDep = toJsrDependency('^3.21.4'); // 'jsr:^3.21.4'
}

// Get all available mappings
import { getAvailableNpmPackages } from '@prefer-jsr/npm2jsr';
const packages = getAvailableNpmPackages(); // ['zod', '@eslint/markdown']
```

## API

### `getJsrEquivalent(npmPackage: string): string | null`

Returns the JSR package name for a given NPM package, or null if no mapping exists.

### `hasJsrEquivalent(npmPackage: string): boolean`

Checks if an NPM package has a JSR equivalent.

### `toJsrDependency(version: string): string`

Converts a version string to JSR format by prefixing with `jsr:`.

### `getAvailableNpmPackages(): string[]`

Returns an array of all NPM packages that have JSR mappings.

## Contributing

This package is part of the prefer-jsr monorepo. The mapping may be updated as new packages become available on JSR.

## Building

Run `pnpm nx build npm2jsr` to build the library.

## Running unit tests

Run `pnpm nx test npm2jsr` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @preference-sl/gltf_merger_wasm
Description: WASM module for GLTF file processing.
Author: Angel Rodriguez Cerro
Latest version: 1.4.4

# gltf_merger_wasm
WASM module for processing GLTF files.

Upon install, postinstall copies into the consumer project:

- public/preference-sl/gltf_merger_wasm/PrefGltfMergerWasm.js
- public/preference-sl/gltf_merger_wasm/PrefGltfMergerWasm.wasm

Env vars:
- PUBLIC_DIR â€” destination root (auto-detects public, wwwroot, or src/assets if not set)
- WASM_SUBDIR â€” subfolder for WASM files (default: package root)

## Usage

`javascript
import createModule from '@preference-sl/gltf_merger_wasm';

// Initialize WASM module
const module = await createModule();

// Use exported functions
const merger = new module.GltfMerger();
npm package: @preference-sl/prefconfigurator-wasm
Description: .NET WebAssembly runtime package that centralizes logic for building product configurators, exposing a simple API for integration into ecommerce platforms.
Author: Alex Moreno Palacio
Latest version: 4.8.0

# prefconfigurator-wasm

Upon install, \postinstall\ copies into the consumer project:

- \public/preference-sl/prefconfigurator-wasm/_framework\
- \public/preference-sl/prefconfigurator-wasm/main.js\ (if not present)
- \public/preference-sl/prefconfigurator-wasm/index.demo.html\ (if not present)
- Extra JS under \public/preference-sl/prefconfigurator-wasm/\ (without overwriting)