open-index/open-npm huggingface dataset:
npm package: @inog/iris-library-js
Description: JS Library to interact with IRIS Gateway
Author: Innovationsverbund Öffentliche Gesundheit
Latest version: 1.2.0

<p align="center" class="text-center">
  <img src="https://i.imgur.com/7kFsoY9.png" width="320" alt="IRIS Logo" />
</p>

<p align="center" class="text-center">
  <img alt="" src="https://img.shields.io/github/workflow/status/iris-gateway/iris-library-js/Release/main"/>
  <img alt="" src="https://shields.io/github/issues/iris-gateway/IRIS-library-js"/>
  <img alt="" src="https://shields.io/npm/l/@inog/iris-library-js"/>
  <img alt="" src="https://shields.io/npm/v/@inog/iris-library-js"/>
</p>

# IRIS - JS Library

IRIS stands for "Integration of Remote systems into Infection control Software" and is intended to be the central point of mediation between the various contact, event and guest tracking apps on the one hand and the infection control software (e.g. SORMAS) in the health departments on the other.

This repository is used as a client library to handle the connection with the IRIS gateway

## Purpose

To help interact with the IRIS Gateway this helper library abstracts aspects of the interaction with the IRIS Gateway like encryption. This way you can just send the data without worrying about the annoying stuff.

## Installation

You should have [node](https://nodejs.org/en/) and npm or [yarn](https://yarnpkg.com) installed.

```bash
$ yarn add @inog/iris-library-js
```

## Basic Usage

Before being able to send or check data the library must be initialized with the url of the IRIS Gateway:

```js
import Iris from '@inog/iris-library-js';

const iris = new Iris({
  baseUrl: 'https://your.iris.url',
});
```

At first, it must be checked whether a data request for this code exists in the IRIS system. This way also the public key for addressing the correct health office is also obtained

```js
const dataRequest = await iris.getDataRequest('12345-abcd');
```

Afterwards the data can be sent with the corresponding code

```js
await iris.sendContactsEvents('12345-abcd', { your: 'data' }, { firstName: 'Sending', lastName: 'User' });
```

> Please note: Before being able to call `sendContactsEvents` with a specific code, the data request must be received first by calling `getDataRequest` with the same code.

## Documentation

> Refer to the basic instructions above. More thorough documentation will be added asap.

## Changelog

For a list of changes, please refer to the [CHANGELOG](CHANGELOG.md).

## Contributions

Contributions are more than welcome, check our [CONTRIBUTING Guide](CONTRIBUTING.md).

## Stay in touch

![Innovationsverbund Öffentliche Gesundheit](https://i.imgur.com/uRkhuII.png)

- Website - [https://inög.de/](https://inög.de/)
- Twitter - [@inoeg_de](https://twitter.com/inoeg_de)

## License

[MIT licensed](LICENSE).
npm package: @inogai/eslint-plugin-command
Description: Comment-as-command for one-off codemod with ESLint
Author: Anthony Fu
Latest version: 1.0.0-upsteam.3.3.1

# eslint-plugin-command

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

[**Documentations**](https://eslint-plugin-command.antfu.me/)

Comment-as-command for one-off codemod with ESLint.

https://github.com/antfu/eslint-plugin-command/assets/11247099/ec401a21-4081-42d0-8748-9d0376b7d501

## Introduction

**ESLint Plugin Command** is a special kind of ESLint plugin, that by default, **does nothing**. Instead of checking for code quality, it serves as a micro-codemod tool triggers by special comments on-demand, resuse the infrastructure of ESLint.

For example, one of the built-in commands, `/// to-function` allows you to convert a single arrow function expression to a function declaration.

<!-- eslint-skip -->

```ts
/// to-function
const foo = async <T>(msg: T): void => {
  console.log(msg)
}
```

Will be transformed to this when you hit save with your editor or run `eslint . --fix`. After executing the command, the comment will also be removed along with the transformation:

```ts
async function foo<T>(msg: T): void {
  console.log(msg)
}
```

One more example that `/// to-promise-all` converts a sequence of `await` expressions to `await Promise.all()`:

<!-- eslint-skip -->

```ts
/// to-promise-all
const foo = await bar().then
const { get } = await import('lodash-es')
```

Will be transformed to:

```ts
const [
  foo,
  { get },
] = await Promise.all([
  bar(),
  import('lodash-es'),
] as const)
```

Refer to the [documentation](https://eslint-plugin-command.antfu.me/) for more details.

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.circles.svg">
    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.circles.svg'/>
  </a>
</p>

## License

MIT License © 2024-PRESENT [Anthony Fu](https://github.com/antfu)

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/eslint-plugin-command?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/eslint-plugin-command
[npm-downloads-src]: https://img.shields.io/npm/dm/eslint-plugin-command?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/eslint-plugin-command
npm package: @inogo/react-native-zebra-printer
Description: Print barcodes and text with a Zebra label printer with React Native.
Author: InoGo Software
Latest version: 1.4.8


# react-native-zebra-printer

## Getting started

`$ npm install react-native-zebra-printer --save`

### Mostly automatic installation

`$ react-native link react-native-zebra-printer`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-zebra-printer` and add `RNReactNativeZebraPrinter.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNReactNativeZebraPrinter.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNReactNativeZebraPrinterPackage;` to the imports at the top of the file
  - Add `new RNReactNativeZebraPrinterPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-zebra-printer'
  	project(':react-native-zebra-printer').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-zebra-printer/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-zebra-printer')
  	```

## Usage
```typescript
import * as React from "react";
import { Button } from "react-native";
import RNReactNativeZebraPrinter from "react-native-zebra-printer";

interface IProps {}

const PrinterExample: React.FC<IProps> = () => {
    const [printer, setPrinter] = React.useState<any | null>(null);

    React.useEffect(() => {
        connectPrinter();

        return () => {
            if (printer !== null) {
                RNReactNativeZebraPrinter.closeConnection();
            }
        };
    }, []);

    /**
     * Create a connection to the printer.
     */
    const connectPrinter = async () => {
        const devices = await RNReactNativeZebraPrinter.getBondedDevices();
        const printers = devices.filter((device: any) => device.class === 1664);
        const p = printers.length ? printers[0] : null;
        if (p === null) {
            console.warn("unable to find printer. Found devices:", devices);
        }

        setPrinter(p);

        RNReactNativeZebraPrinter.initConnection(p.id);
    };

    const print = () => {
        RNReactNativeZebraPrinter.print(
            printer.id,
            "Tenant name",
            "Trip name",
            "Depot 1",
            "Levering",
            "2020-01-01",
            "23:59",
            "1/10",
            "1234 AB",
			"Amsterdam"
        );
    };

    return <Button title="print" onPress={print} />;
};

export { PrinterExample };
```
npm package: @inok/ngx-inok-player
Description: Audio Player for Angular
Author: Chizhov Nikolay
Latest version: 0.0.10

## Installation
```bash
npm i @inok/ngx-inok-player --save
```

## Documentation

### Dependencies

- [`file-saver`](https://www.npmjs.com/package/file-saver)

### Inputs (Properties)

-  `file` (`string` | `File` | `<Promise<File>>Function`) - Source of audio-file
-  `fileName` (`?string`) - Set filename for download audio-file (If not set, try parse from `file`)
-  `autoplay` (`?boolean`) - Autoplay of audio-file (default: `false`)
-  `loop` (`?boolean`) - Auto loop of audio-file (default: `false`)
-  `preload` (`?'auto' | 'metadata' | 'none'`) - Preloading of audio-file (default: `none`)
-  `group` (`?string`) - Group of audio-files for pause, if selected another file of group with this name (default: `default`)
-  `onError` (`?function`) - Function, that will be executed if catch error for playing audio-file (default: `empty function`)

### Example

```html
<ngx-inok-player src="assets/1.mp3"
                 group="audio_records" 
                 [onError]="onError"></ngx-inok-player>
<ngx-inok-player src="assets/2.mp3"
                 group="audio_records" 
                 [onError]="onError"></ngx-inok-player>
```

### License

The MIT License