open-index/open-npm huggingface dataset:
npm package: @hedger/formkit-iconify-loader
Description: Load Iconify icons in FormKit.
Author: Nicolas Hedger
Latest version: 0.1.1

# FormKit Iconify Loader

This package providers a FormKit icon loader for Iconify.

## Installation

**FormKit Iconify Loader** can be installed with your favorite package manager.

```bash
# NPM
npm install @hedger/formkit-iconify-loader

# Yarn
yarn add @hedger/formkit-iconify-loader

# PNPM
pnpm add @hedger/formkit-iconify-loader
```

## Usage

Import the provided `createIconifyLoader` function in your FormKit configuration
file and use it to create a FormKit Icon Loader for your preferred Iconify icon
set.

The following example illustrates how to create a FormKit Icon Loader for the
Heroicons icon set.

```ts
import { icons } from "@iconify-json/heroicons";
import type { DefaultConfigOptions } from "@formkit/vue";
import { createIconifyLoader } from "@hedger/formkit-iconify-loader";

export const config = {
	iconLoader: createIconifyLoader(icons),
} satisfies DefaultConfigOptions;
```

You can now reference any icons from the Heroicons icon set in your FormKit
inputs, as prefix icons or suffix icons, for example. You can also use the
`FormKitIcon` component to render any icon from the Heroicons icon set.

```html
<template>
	<!-- On a FormKit input -->
	<FormKit type="email" prefix-icon="envelope" />

	<!-- Using the FormKitIcon component -->
	<FormKitIcon icon="envelope" />
</template>
```

### Using multiple icon sets

You may reference icons from multiple icon sets in your FormKit inputs. To do so, load all the icon sets you need and pass them to the `createIconifyLoader` function and make
sure to prefix the icon names with the icon set name.

Here's an example where we load the Heroicons and the Majesticons icon sets.

```ts
import { icons as heroicons } from "@iconify-json/heroicons";
import { icons as majesticons } from "@iconify-json/majesticons";
import type { DefaultConfigOptions } from "@formkit/vue";
import { createIconifyLoader } from "@hedger/formkit-iconify-loader";

export const config = {
	iconLoader: createIconifyLoader(heroicons, majesticons),
} satisfies DefaultConfigOptions;
```

```html
<template>
	<FormKit type="email" prefix-icon="heroicons:envelope" />
	<FormKitIcon icon="majesticons:academic-cap" />
</template>
```

## License

Copyright © 2023, [Nicolas Hedger](https://github.com/nhedger). Released under the [MIT License](LICENSE.md).
npm package: @hedger/formkit-plugin-hybridly
Description: FormKit plugin for Hybridly.
Author: Nicolas Hedger
Latest version: 0.2.0

# FormKit Plugin for Hybridly

FormKit plugin for automatically mapping Hybridly errors to form fields.

-   ⚙️ Zero-configuration.
-   🪆 Works with deeply nested forms, groups and lists.

## Installation

The FormKit plugin for Hybridly is available as an NPM package.

Run one of the following commands to add the package to your project.

```bash
# npm
npm install @hedger/formkit-plugin-hybridly

# yarn
yarn add @hedger/formkit-plugin-hybridly

# pnpm
pnpm add @hedger/formkit-plugin-hybridly
```

### Registering the plugin

When registered, the plugin will attach itself to all root FormKit nodes that
have a type of `form`.

```ts
import Hybridly from '@hedger/formkit-plugin-hybridly';

export default {
    plugins: [Hybridly],
};
```

## Multiple forms on the same page

When multiple forms are present on the same page, you must specify the name of
the error bag to use to ensure that the correct errors are mapped to the correct
form. Set the form's `errorBag` prop to the same name as the `errorBag` option
on the `useForm` call.

```html
<script setup>
    const loginForm = useForm({
        method: 'POST',
        url: '/login',
        errorBag: 'login',
        fields: {
            email: '',
            password: '',
        },
    });
</script>

<template>
    <FormKit
        type="form"
        errorBag="login"
        v-model="loginForm.fields"
        @submit="loginForm.submit">
        <FormKitField type="email" name="email" />
        <FormKitField type="password" name="password" />
    </FormKit>
</template>
```

## How it works

This plugins hooks into Hybridly's `navigated` event and extracts the errors
from the response. It then maps the errors to the form fields by matching the
field name to the error key.

For example, if you have a form with a field named `email` and the response
contains an error with the key `email`, the error will be mapped to the `email`
field.

## License

This plugin is open-sourced software licensed under the
[MIT license](LICENSE.md).
npm package: @hedger/lv95
Description: Transform LV95 coordinates to WGS84
Author: Nicolas Hedger
Latest version: 1.0.0

# LV95

This library exposes a `fromLV95` function to transform LV95 coordinates to
WGS84 coordinates.

## Installation

Install with your favorite package manager.

```bash
# npm
npm install @hedger/lv95

# pnpm
pnpm add @hedger/lv95

# yarn
yarn add @hedger/lv95
```

## Usage

### CommonJS import

```ts
const { fromLV95 } = require('@hedger/lv95');

const { latitude, longitude } = fromLV95(2_700_000, 1_100_000);
```

### ESM

```ts
import { fromLV95 } from '@hedger/lv95';

const { latitude, longitude } = fromLV95(2_700_000, 1_100_000);
```

## License

This library is open-sourced software distributed under the [MIT License](./LICENSE.md).

## Credits

The formulas used in this library come from the following document provided by the [Federal Office of Topography swisstopo](https://www.swisstopo.admin.ch/en/home.html).

-   [Formulas and constants for the calculation of the Swiss conformal cylindrical projection
    and for the transformation between coordinate systems](https://www.swisstopo.admin.ch/content/swisstopo-internet/en/online/calculation-services/_jcr_content/contentPar/tabs/items/documents_publicatio/tabPar/downloadlist/downloadItems/20_1467104436749.download/refsys_e.pdf)
npm package: @hedger/prettier-config
Description: My personal Prettier configuration
Author: Nicolas Hedger
Latest version: 1.2.0

# Prettier configuration

This package contains my personal [Prettier](https://prettier.io) configuration.

## Installation

```bash
# pnpm
pnpm add -D @hedger/prettier-config

# npm
npm i -D @hedger/prettier-config
```

## Usage

Create a new `.prettierrc.cjs` file with the following content.

```js
module.exports = {
    ...require("@hedger/prettier-config"),
};
```