open-index/open-npm huggingface dataset:
npm package: @monedata/eslint-config
Description: Monedata JS ESLint config
Author: Monedata
Latest version: 1.1.2

k# @monedata/eslint-config

[![npm version](https://badge.fury.io/js/@monedata%2Feslint-config.svg)](https://badge.fury.io/js/@monedata%2Feslint-config)

This package provides Monedata's JS ESLint rules as an extensible shared configuration.

## Requirements

* node: **>= 12**
* npm: **>= 5**  

## Installation

1. Install the dependency with the following command (which will also install peer dependencies):

  ```sh
  npx install-peerdeps --dev @monedata/eslint-config
  ```
     
2. Add the following line in your `.eslintrc` file:

  ```json
  "extends": "@monedata/eslint-config"
  ```
npm package: @monei-js/serverless-analyze-bundle-plugin
Description: A Serverless plugin to analyze the bundle of a lambda function.
Author: Adrien Cacciaguerra
Latest version: 2.0.2

# Serverless analyze bundle plugin

A Serverless plugin to analyze the bundle of a lambda function.

## Prerequisites 📓

1. Use [serverless-esbuild](https://github.com/floydspace/serverless-esbuild) to bundle your functions
2. Only [individually bundled functions](https://www.serverless.com/framework/docs/providers/aws/guide/packaging#packaging-functions-separately) can be analyzed

## Usage 📦

Install with

```bash
pnpm add -D serverless-analyze-bundle-plugin
```

Add `serverless-analyze-bundle-plugin` to your serverless plugins.

Run the following command to analyze a function:

```bash
serverless package --analyze myFunctionName
```

## Options 🛠

### `--analyze`

The name of the function to analyze.

### `--template`

The bundle template to use. Should be one of `sunburst`, `treemap`, `network`. Defaults to `treemap`.

## Using the CDK instead of the Serverless Framework? 🤔

No worries! Check out my library [cdk-bundle-analyzer](https://github.com/adriencaccia/cdk-bundle-analyzer) that does the same thing for the CDK 🚀
npm package: @monei-js/svelte-components
Description: MONEI Svelte 5 components for accepting payments with CardInput, Bizum, PayPal, and PaymentRequest.
Author: MONEI
Latest version: 2.0.7

# @monei-js/svelte-components

Svelte 5 components for MONEI payments. Runes-based props, `bind:this` for `submit()`, and idiomatic Svelte API.

## Install

```bash
npm install @monei-js/svelte-components @monei-js/components
```

## Components

| Component        | Description                                |
| ---------------- | ------------------------------------------ |
| `CardInput`      | Secure card input (iframe) with `submit()` |
| `Bizum`          | Bizum button + phone verification modal    |
| `PayPal`         | PayPal checkout button                     |
| `PaymentRequest` | Apple Pay / browser Payment Request button |

## Quick Start

```svelte
<script lang="ts">
  import {CardInput, confirmPayment} from '@monei-js/svelte-components';

  let cardInput: CardInput;
  const paymentId = 'pay_...';

  async function handleSubmit() {
    const {token, error} = await cardInput.submit();
    if (error) return console.error(error);
    await confirmPayment({paymentId, paymentToken: token});
  }
</script>

<CardInput bind:this={cardInput} {paymentId} />
<button onclick={handleSubmit}>Pay</button>
```

## API Re-exports

`confirmPayment` and `api` are re-exported from this package for convenience:

```ts
import {CardInput, Bizum, confirmPayment, api} from '@monei-js/svelte-components';
```

## Migrating from vanilla JS

This is a new package — there was no previous Svelte driver.

### submit() usage

Use `bind:this` to get a component reference, then call `submit()`:

```svelte
<script lang="ts">
  import {CardInput, confirmPayment} from '@monei-js/svelte-components';

  let cardInput: CardInput;
  let {paymentId}: {paymentId: string} = $props();

  async function handleSubmit() {
    const {token, error} = await cardInput.submit({cardholderName: 'John'});
    if (error) return;
    await confirmPayment({paymentId, paymentToken: token});
  }
</script>

<CardInput bind:this={cardInput} {paymentId} onChange={handleChange} />
<button onclick={handleSubmit}>Pay</button>
```

### Full example

```svelte
<script lang="ts">
  import {CardInput, Bizum, PayPal, PaymentRequest, confirmPayment} from '@monei-js/svelte-components';

  let cardInput: CardInput;
  let {paymentId}: {paymentId: string} = $props();
  let error = $state('');

  function handleChange(e: {isValid: boolean}) {
    error = '';
  }

  async function handleSubmit() {
    const result = await cardInput.submit();
    if (result.error) {
      error = result.error;
      return;
    }
    await confirmPayment({paymentId, paymentToken: result.token});
  }
</script>

<div>
  <CardInput bind:this={cardInput} {paymentId} onChange={handleChange} />
  <button onclick={handleSubmit}>Pay</button>
  {#if error}
    <p>{error}</p>
  {/if}
</div>
```

### Svelte 5 runes

All components use Svelte 5 runes (`$props()`, `$effect`, `$state`). Svelte 4 is not supported.

## Documentation

Full API reference: [docs.monei.com/monei-js/reference](https://docs.monei.com/monei-js/reference/)

## License

MIT