open-index/open-npm huggingface dataset:
npm package: @rezo-zero/intervention-request-provider
Description: InterventionRequest provider for @nuxt/image
Author: Rezo Zero
Latest version: 2.0.0

# intervention-request-provider
[InterventionRequest](https://github.com/ambroisemaupate/intervention-request) provider for [@nuxt/image](https://github.com/nuxt/image)

This is a **Nuxt 3** module.

## Installation

```sh
npm install --save-dev @rezo-zero/intervention-request-provider @nuxt/image
```

- Register Nuxt module `@rezo-zero/intervention-request-provider` and `@nuxt/image`:

```ts
// nuxt.config.ts
modules: [
    '@rezo-zero/intervention-request-provider',
    '@nuxt/image'
]
```

> [!NOTE]  
> `@rezo-zero/intervention-request-provider` extends the Nuxt Image configuration.   
> Therefore it must be registered before `@nuxt/image`.

## Setup

### baseUrl

- As a runtime config variable (preferred)
```dotenv
#.env
NUXT_PUBLIC_INTERVENTION_REQUEST_BASE_URL=https://example.com/assets
```

- As a `@nuxt/image` provider option

```js
    // nuxt.config.ts
    image: {
        providers: {
            interventionRequest: {
                options: {
                    baseUrl: 'http://localhost'
                }
            }
        }
    }
```

### noProcessBaseUrl

- As a runtime config variable (preferred)
```dotenv
#.env
NUXT_PUBLIC_INTERVENTION_REQUEST_NO_PROCESS_BASE_URL=https://example.com/assets
```

- As a `@nuxt/image` provider option

```js
    // nuxt.config.ts
    image: {
        providers: {
            interventionRequest: {
                options: {
                    noProcessBaseUrl: 'https://example.com/images'
                }
            }
        }
    }
```

### imagesPath (see [InterventionRequest configuration](https://github.com/ambroisemaupate/intervention-request#configuration))

- As a runtime config variable (preferred)
```dotenv
#.env
NUXT_PUBLIC_INTERVENTION_REQUEST_IMAGES_PATH=images
```

```js
    // nuxt.config.ts
    image: {
        providers: {
            interventionRequest: {
                options: {
                    imagesPath: 'images'
                }
            }
        }
    }
```



## Operations available
See [InterventionRequest operations](https://github.com/ambroisemaupate/intervention-request#available-operations)

## Contributing

1. Clone this repository
2. Install dependencies using `npm install`
3. Start Docker server ([InterventionRequest](https://github.com/ambroisemaupate/intervention-request#ready-to-go-docker-image)) using `docker-compose up -d`
4. Start development server using `npm run dev`

## Publishing

```shell
npm run release
```
npm package: @rezo-zero/nuxt-cache-control
Description: Declare fine-grained cache control headers for your Nuxt application in each page
Latest version: 0.1.7

# Nuxt Cache-Control

[![npm version][npm-version-src]][npm-version-href]
[![Nuxt][nuxt-src]][nuxt-href]

Declare fine-grained cache control headers for your Nuxt application in each page.

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

## Features

- **Fine-grained cache control**: Set cache control headers for each page with `useCacheControl` composable.
- **Prevents caching when response status is not 200**
- **Prevents public responses when some cookies attached**: configure some cookies names for which cache-control will be private.

## Quick Setup

Install the module to your Nuxt application with one command:

```bash
npx nuxi module add @rezo-zero/nuxt-cache-control
```

### Configure module

```ts
// nuxt.config.ts
export default defineNuxtConfig({
    modules: [
        '@rezo-zero/nuxt-cache-control'
    ],
    cacheControl: {
        noCacheCookies: ['cart', 'session', 'auth']
    }
})
```

That's it! You can now use Nuxt Cache Control in your Nuxt app with `useCacheControl` composable.

```vue
<script setup>
/*
 * Define SSR cache control header for this page
 */
useCacheControl({
    public: true,
    // 1 hour
    maxAge: 60 * 60,
    // 30 minutes
    sMaxAge: 60 * 30,
    // SWR for 2 minutes
    staleWhileRevalidate: 60 * 2,
})
</script>
```

Cache control composable accepts the following options:

```ts
export interface CacheControlOptions {
    maxAge?: number // in seconds
    sMaxAge?: number // in seconds
    staleWhileRevalidate?: number | true // in seconds, or true, which means infinite staleWhileRevalidate
    public: boolean
}
```


## Contribution

<details>
  <summary>Local development</summary>
  
  ```bash
  # Install dependencies
  pnpm install
  
  # Generate type stubs
  pnpm dev:prepare
  
  # Develop with the playground
  pnpm dev
  
  # Build the playground
  pnpm dev:build
  
  # Run ESLint
  pnpm lint
  
  # Run Vitest
  pnpm test
  pnpm test:watch
  
  # Release new version
  pnpm release
  ```

</details>


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

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

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

[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com
npm package: @rezo-zero/xilofone-fetch
Description: Fetch Xilofone messages and output them
Latest version: 0.2.2

# xilofone-fetch
Fetch Xilofone messages and output them

## Installation

`yarn add -D @rezo-zero/xilofone-fetch`

## Configuration

```dotenv
XILOFONE_BASE_URL=https://xilofone.example.com
XILOFONE_USERNAME=user
XILOFONE_PASSWORD=***********
XILOFONE_FILE_ID=12
XILOFONE_OUTPUT=assets/locales/
```

## Usage

Setup a custom npm script into package.json file

```json
{
    "scripts": {
        "xilo": "node ./node_modules/@rezo-zero/xilofone-fetch/dist/index.js"
    }
}
```

and use it like

```bash
yarn xilo
```