open-index/open-npm huggingface dataset:
npm package: @fixers/aweber-node-api
Description: Aweber do not have API!
Author: Luca
Latest version: 0.0.3

# Aweber Node API

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]

A library to interact with Aweber in 2023...

This library uses `ofetch` for sending requests.

- [Install](#install)

## Install
```sh
pnpm i @fixers/aweber-node-api
```

```sh
npm install @fixers/aweber-node-api
```

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/aweber-node-api/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/aweber-node-api

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/aweber-node-api.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/aweber-node-api

[license-src]: https://img.shields.io/npm/l/@fixers/aweber-node-api.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/aweber-node-api
npm package: @fixers/disposable-email
Description: Check if an email is from a disposable domain
Author: Luca
Latest version: 0.0.1

# Disposable Email

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]

Check if an email is from a disposable domain, pretty self-explanatory.

> Explicit memory usage, no global constants!

This library to not uses global constants, memory is allocated only when you invoke the function.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
- [Install](#install)
- [Usage](#usage)
  - [Bulk Validation](#bulk-validation)

## Install
```sh
pnpm i @fixers/disposable-email
```

```sh
npm install @fixers/disposable-email
```

## Usage

> Note: each time you invoke this function, a new `Set` containing all the disposable domains is created.

To check if an email is from a disposable domain:

```ts
import { isDisposable } from '@fixers/disposable-email'

// check an email
if (isDisposable('bad@disposable-domain.com')) {
  //
}

// check a domain
if (isDisposable('disposable-domain.com')) {
  //
}
```

### Bulk Validation

If you need to check a large volume of emails, you might want to allocate memory only once, create a factory function:

```ts
import { createDisposableFactory } from '@fixers/disposable-email'

// hold a reference to a Set
const isDisposable = createDisposableFactory()

// no memory allocation
isDisposable('bad@disposable-domain.com')

// no memory allocation
isDisposable('other@disposable-domain.com')
```


<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/disposable-email/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/disposable-email

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/disposable-email.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/disposable-email

[license-src]: https://img.shields.io/npm/l/@fixers/disposable-email.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/disposable-email
npm package: @fixers/fetch-event-source
Description: > A port of [@microsoft/fetch-event-source](https://raw.githubusercontent.com/Azure/fetch-event-source/main/README.md)
Latest version: 1.0.1

# Fetch Event Source

> A port of [@microsoft/fetch-event-source](https://raw.githubusercontent.com/Azure/fetch-event-source/main/README.md)

This package do uses async generator.

# Install
```sh
pnpm i @fixers/fetch-event-source
```

```sh
npm install @fixers/fetch-event-source
```

# Usage
```ts
// do a regular fetch
const response = await fetch("https://...", {
    method: "POST",
    body: JSON.stringify({ .. }),
    headers: {
      Accept: "text/event-stream"
    },
  }
);

// create the reader
const reader = response.body!.getReader();

for await (const message of createEventMessageReader(reader)) {
  // the message will be a EventSourceMessage
  const data = message.data
}
```

You are in control so make sure to check the response for validity

```ts
// do a regular fetch
const response = await fetch(
  "https://...",
  {
    method: "POST",
    headers: {
      Accept: "text/event-stream"
    },
    body: JSON.stringify({ .. }),
  }
);

// you are responsible for doing checks
if (response.ok) {

}

// or as an alternative
if (response.status >= 200 && response.status < 300) {
}

// check the response header
const contentType = response.headers.get("content-type");
if (!contentType?.startsWith('text/event-stream')) {
  throw new Error(
    `Expected content-type to be text/event-stream, Actual: ${contentType}`
  );
}
```
npm package: @fixers/gatewayapi-node-api
Description: Gatewayapi do not have API!
Author: Luca
Latest version: 0.0.1

# Gatewayapi Node API

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]

A library to interact with Gatewayapi in 2023...

This library uses `ofetch` for sending requests.

- [Install](#install)

## Install
```sh
pnpm i @fixers/gatewayapi-node-api
```

```sh
npm install @fixers/gatewayapi-node-api
```

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/gatewayapi-node-api/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/gatewayapi-node-api

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/gatewayapi-node-api.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/gatewayapi-node-api

[license-src]: https://img.shields.io/npm/l/@fixers/gatewayapi-node-api.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/gatewayapi-node-api
npm package: @fixers/nuxt-authjs
Description: A Nuxt module for authjs
Author: Luca
Latest version: 0.0.20

# Nuxt Authjs

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]

Nuxt Authjs for doing amazing things.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/@fixers/nuxt-authjs?file=playground%2Fapp.vue) -->
<!-- - [📖 &nbsp;Documentation](https://example.com) -->

## Features

<!-- Highlight some of the features your module provide here -->
- ⛰ &nbsp;Foo
- 🚠 &nbsp;Bar
- 🌲 &nbsp;Baz

## Quick Setup

1. Add `@fixers/nuxt-authjs` dependency to your project

```bash
# Using pnpm
pnpm add -D @fixers/nuxt-authjs

# Using yarn
yarn add --dev @fixers/nuxt-authjs

# Using npm
npm install --save-dev @fixers/nuxt-authjs
```

2. Add `@fixers/nuxt-authjs` to the `modules` section of `nuxt.config.ts`

```js
export default defineNuxtConfig({
  modules: [
    '@fixers/nuxt-authjs'
  ]
})
```

That's it! You can now use My Module in your Nuxt app ✨

## Development

```bash
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
```

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/nuxt-authjs/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/nuxt-authjs

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/nuxt-authjs.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/nuxt-authjs

[license-src]: https://img.shields.io/npm/l/@fixers/nuxt-authjs.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/nuxt-authjs

[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com
npm package: @fixers/nuxt-lucia-auth
Description: Nuxt Auth module with Lucia
Author: Luca
Latest version: 0.0.2

<!--
Get your module up and running quickly.

Find and replace all on all files (CMD+SHIFT+F):
- Name: My Module
- Package name: @fixers/nuxt-lucia-auth
- Description: My new Nuxt module
-->

# My Module

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]

My new Nuxt module for doing amazing things.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/@fixers/nuxt-lucia-auth?file=playground%2Fapp.vue) -->
<!-- - [📖 &nbsp;Documentation](https://example.com) -->

## Features

<!-- Highlight some of the features your module provide here -->
- ⛰ &nbsp;Foo
- 🚠 &nbsp;Bar
- 🌲 &nbsp;Baz

## Quick Setup

Install the module to your Nuxt application with one command:

```bash
npx nuxi module add @fixers/nuxt-lucia-auth
```

That's it! You can now use My Module in your Nuxt app ✨

## Contribution

<details>
  <summary>Local development</summary>

  ```bash
  # Install dependencies
  npm install

  # Generate type stubs
  npm run dev:prepare

  # Develop with the playground
  npm run dev

  # Build the playground
  npm run dev:build

  # Run ESLint
  npm run lint

  # Run Vitest
  npm run test
  npm run test:watch

  # Release new version
  npm run release
  ```

</details>

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/nuxt-lucia-auth/latest.svg?style=flat&colorA=020420&colorB=00DC82
[npm-version-href]: https://npmjs.com/package/@fixers/nuxt-lucia-auth

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/nuxt-lucia-auth.svg?style=flat&colorA=020420&colorB=00DC82
[npm-downloads-href]: https://npmjs.com/package/@fixers/nuxt-lucia-auth

[license-src]: https://img.shields.io/npm/l/@fixers/nuxt-lucia-auth.svg?style=flat&colorA=020420&colorB=00DC82
[license-href]: https://npmjs.com/package/@fixers/nuxt-lucia-auth

[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com
npm package: @fixers/nuxt-mail
Description: A Nuxt module that makes mail easy
Author: Luca
Latest version: 1.0.1

# Nuxt Mail

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]

A Nuxt module that makes mail easy for doing amazing things.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)

## Features

<!-- Highlight some of the features your module provide here -->
- ⛰ &nbsp;Foo
- 🚠 &nbsp;Bar
- 🌲 &nbsp;Baz

## Quick Setup

1. Add `@fixers/nuxt-mail` dependency to your project

```bash
# Using pnpm
pnpm add -D @fixers/nuxt-mail

# Using yarn
yarn add --dev @fixers/nuxt-mail

# Using npm
npm install --save-dev @fixers/nuxt-mail
```

2. Add `@fixers/nuxt-mail` to the `modules` section of `nuxt.config.ts`

```js
export default defineNuxtConfig({
  modules: [
    '@fixers/nuxt-mail'
  ]
})
```

That's it! You can now use Nuxt Mail in your Nuxt app ✨

## Development

```bash
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
```

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/nuxt-mail/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/nuxt-mail

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/nuxt-mail.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/nuxt-mail

[license-src]: https://img.shields.io/npm/l/@fixers/nuxt-mail.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/nuxt-mail

[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com
npm package: @fixers/nuxt-stripe
Description: A Nuxt module for Stripe
Author: Luca
Latest version: 4.1.1

[![nuxt-stripe-social-card](./docs/public/social-card.png)](https://nuxt-stripe.fixers.dev)

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]

# Nuxt Stripe

A Nuxt module for Stripe, with local webhook testing support out of the box.

- [📖 &nbsp;Read Documentation](https://nuxt-stripe.fixers.dev)
- [✨ &nbsp;Release Notes](/CHANGELOG.md)

## Features

- ⛰ &nbsp;Use Stripe with Nuxt
- ⛰ &nbsp;Support local webhook testing out of the box.
- ⛰ &nbsp;Nuxt Devtools support to explore webhook events.

### Contributing

- Clone this repository
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run `pnpm dev:prepare` to generate type stubs.
- Use `pnpm dev` to start [playground](./playground) in development mode.

## 📑 License

The classy [MIT License](./LICENSE)

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/nuxt-stripe/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/nuxt-stripe

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/nuxt-stripe.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/nuxt-stripe

[license-src]: https://img.shields.io/npm/l/@fixers/nuxt-stripe.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/nuxt-stripe

[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com

# Version 4 Update Notice

Version 4 is an upcoming major update that will introduces breaking changes.

- Webhook handler has been refactored.

The helper `defineStripeWebhook` is now `stripeWebhookHandler`, the second parameter has been removed, the callback how accept as its first parameter the `StripeEvent` and as its second parameter the context object.

```ts
// The new callback signature
type StripeWebhookHandler = (
  event: Stripe.Event,

  context: {
    $event: H3Event
    stripe: Stripe
  }
)
=> any
```
npm package: @fixers/s3
Description: Wrap common s3 functionality so you don't get crazy hair!
Author: Luca
Latest version: 0.0.4

# S3 Drive

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]

Wrap common s3 functionality!

This library provide a way to work within a single bucket easily by linking together an s3 instance and a bucket name into a single class.

As with any wrapper, you lose some functionality, however you can always access the s3 instance and any custom configuration, the library re-export all the internal methods with the prefix `s3_` so you can use them at will.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
- [Install](#install)
- [Usage](#usage)
  - [Configure using S3Client](#configure-using-s3client)

> This package is ESM only!

> This package is for Node 18 and above only!

## Install
```sh
pnpm i @fixers/s3
```

```sh
npm install @fixers/s3
```

## Usage

The easiest way is to use the S3Drive.

```ts
import { s3 } from '@fixers/s3'

const drive = s3({
  publicUrl: 'https//domain/',
  bucket: 'bucket-name',

  // common s3 properties
  region: 'auto',
  credentials: {
    accessKeyId: '',
    secretAccessKey: '',
  },
})

await drive.get('file.txt')
```

### Configure using S3Client

If you prefer to configure s3 by yourself:

```ts
import { S3Client } from '@aws-sdk/client-s3'
import { S3Drive } from '@fixers/s3'

const s3 = new S3Client({ })
const drive = new S3Drive(s3, {
  bucket: 'bucket-name',
})
```


<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@fixers/s3/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@fixers/s3

[npm-downloads-src]: https://img.shields.io/npm/dm/@fixers/s3.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@fixers/s3

[license-src]: https://img.shields.io/npm/l/@fixers/s3.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/@fixers/s3
npm package: @fixers/stripe-js
Description: Naked loading wrapper for Stripe.js 
Author: Luca
Latest version: 0.0.2

# Stripe-js

> This package is ESM only!

Just like the old good `@stripe/stripe-js`, but no side-effects, no console logs and no warnings.

## Usage

```ts
import { loadStripe } from '@fixers/stripe-js'

// Stripe.js will not be loaded until `loadStripe` is called
const stripe = await loadStripe('pk_test_TYooMQauvdEDq54NiTphI7jx')
```

### Disabling advanced fraud detection signals

If you would like to [disable advanced fraud detection](https://stripe.com/docs/disputes/prevention/advanced-fraud-detection#disabling-advanced-fraud-detection) altogether, you need to manually load the script:

```ts
import { loadScript } from '@fixers/stripe-js'

const stripe = await loadScript({
  advancedFraudSignals: true
})

// Note: stripe is undefined in SSR
return stripe('pk_test_TYooMQauvdEDq54NiTphI7jx')
```
npm package: @fixerteam/barcode-scanner
Description: Simple Barcode scanner based on expo-barcode-scanner with HMS support
Author: fixerteam
Latest version: 0.1.2

# @fixerteam/barcode-scanner

Simple Barcode scanner based on expo-barcode-scanner with HMS support **Android only**.

- on devices with GooglePlayServices would be used play-services-vision detector
- on devices with HuaweiMobileServices would be used HmsScanKit detector
- on other devices will would used Zxing detector

## Installation

```sh
npm install @fixerteam/barcode-scanner
```

or

```sh
yarn add @fixerteam/barcode-scanner
```

add _apply plugin: 'com.huawei.agconnect'_ to your _android/app/build.gradle_

```groovy
apply plugin: "com.android.application"
apply plugin: 'com.huawei.agconnect'
...
```

add HMS and GMV dependency repositories to your _android/build.gradle_

```groovy
buildscript {
    repositories {
        google()
        jcenter()
        maven {url 'https://developer.huawei.com/repo/'}
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.3")
        classpath 'com.google.gms:google-services:4.3.3'
        classpath 'com.huawei.agconnect:agcp:1.4.2.300'

    }
}

allprojects {
    repositories {
        ...
        maven {url 'https://developer.huawei.com/repo/'}
    }
}
```

## Usage

```js
import { BarCodeScanner } from '@fixerteam/barcode-scanner'

export const Example = () => {
  const handleBarcodeRead = ({ type, data }) => {
    console.log(`barcode type=${type} value=${data}`)
  }

  const handleDetectorCreated = ({ detector }) => {
    console.log('detector ', detector)
  }

  return (
    <BarCodeScanner
      onBarCodeRead={handleBarcodeRead}
      onDetectorCreated={handleDetectorCreated}
      type={CameraType.back}
      barCodeTypes={[BarCodeType.ean13, BarCodeType.qr]}
      style={{ flex: 1 }}
    />
  )
}
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT