open-index/open-npm huggingface dataset:
npm package: @pagopa/io-app-email-templates
Description: Common html template for email
Author: https://www.pagopa.gov.it
Latest version: 0.8.0

# io-app-email-templates

This repo contains the mail template(s) sent on behalf of IO App and its services. Templates are created using [MJML](https://mjml.io/) markup language along with typescript files.

## How to apply changes

To edit them, you can choose among these following options:

- [Online editor](https://mjml.io/try-it-live)
- [Local installation](https://mjml.io/download)
- [Visual Studio Code plugin](https://marketplace.visualstudio.com/items?itemName=mjmlio.vscode-mjml)

To generate the HTML output you need to install the following CLI tool:

1. [MJML](https://www.npmjs.com/package/mjml) package:

```shell
npm install -g mjml && mjml <MJML_INPUT_FILE> -o <OUTPUT_FILE>
```

## Add a new template

Steps:

1. Create a directory on the root of the project with a name of your choice.
2. Put an `apply` method in a typescript file named `applier.template.ts` inside your template directory.
3. Put a generation step inside `package.json`(follow the other scripts as example). This will generate an `index.ts` file with the template inside.
   Make sure to put `{{TEMPLATE}}` in the method that is going to be replaced with the HTML generated from the mjml file.
4. Generate a snapshot test to make sure the content doesn't change unexpectedly

## Release

In order to release a new version:

1. Run [the release action](https://github.com/pagopa/io-app-email-templates/actions/workflows/bump-release.yaml)
2. A new PR will be created, review, approve and merge it
3. The [publish action](https://github.com/pagopa/io-app-email-templates/actions/workflows/publish-to-package-registry.yaml) will start and release both a tag and a new package version in the npm package registry

You can check here if the new version has been published once the publish action
is completed.

## Compatibility

Templates are compatible with the following clients:

- Apple Mail 13+ (dark mode included)
- Gmail Web app
- OL Office 365 (dark mode included, partially supported on Windows)
- Outlook 2013, 2016, 2019, 2021 (dark mode included, partially supported on Windows)
- Windows 10 Mail (dark mode partially supported)
- Windows 11 Mail
- Gmail App (Android 6+, dark mode partially supported)
- Gmail App (iOS 13.1+, dark mode partially supported)
- iPad (iOS 13.1+)
- iPhone (iOS 13.1+)
- AOL Mail
- Outlook.com Mail (dark mode partially supported)
- Yahoo! Mail

### Related mail templates

- [Area Riservata (former SelfCare)](https://github.com/pagopa/selfcare-email-templates)
- [Piattaforma Notifiche](https://github.com/pagopa/pn-email-templates)
- [pagoPA](https://github.com/pagopa/pagopa-email-templates)
npm package: @pagopa/io-functions-commons
Description: Common code for Azure functions
Author: https://www.pagopa.gov.it
Latest version: 32.0.0

# io-functions-commons

Common code used across Azure functions of project IO.

## Integration tests
The `__integrations__` folder contains a sub-project which uses `jest` to execute tests against production-like resources. Such test suites expect resources to be up-and-running and they don't care if they are local or cloud resources.

### Run integration tests with local resources
```sh
# run Mailhog, used to simulate an email recipient
docker run -d -p 1025:1025 -p 8025:8025 --name mailhog mailhog/mailhog

# run a local mock of CosmosDB
npm install -g @zeit/cosmosdb-server
nohup cosmosdb-server -p 3000 &

docker run -d --rm -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0

# execute test passing references as env variables

# production STORAGE_CONN_STRING example:
# STORAGE_CONN_STRING="DefaultEndpointsProtocol=https;AccountName=<NAME>;AccountKey=<BASE64KEY>;EndpointSuffix=core.windows.net" \

MAILHOG_HOSTNAME=localhost \
COSMOSDB_URI=https://localhost:3000/ \
COSMOSDB_KEY="dummy key" \
COSMOSDB_DATABASE_NAME=integration-tests \
STORAGE_CONN_STRING="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" \
yarn test:integration
```
npm package: @pagopa/io-pagopa-commons
Description: Common code for integrating with PagoPA
Author: Federico Feroldi
Latest version: 4.0.0

# IO PagoPA Commons

This module provides code shared by the projects of the
[IO App](https://github.com/pagopa/io)
initiative.

## Contributing

In the following there are instructions to build the app in your computer for development purposes.

### Pre-requisites

We built a script for helping setting up the laptop, you can find it [here](https://github.com/pagopa/developer-laptop)

Otherwise, please follow the following steps:

#### Install NodeJS
To run the project you need to install a properly version of NodeJS.

On macOS and Linux we recommend the use of a virtual environment, such as nodenv for managing multiple versions of NodeJS.
The node version used in this project is stored in .node-version.

If you already have nodenv installed and configured on your system, the correct version node will be set when you access the app directory.

To install, follow the steps described below.

#### Install brew

If you do not have it already, install brew following the installation instructions in the [home page](https://brew.sh/).

#### Install nodenv

```
brew install nodenv
```

#### Install yarn

For the management of javascript dependencies we use Yarn.

Yarn is a node application. IF you have already installed in your system version of node compatible with yarn, you can install it as a global command with:

```
npm install -g yarn
```

### Install dependencies and build

Install the libraries used by the project and build it:

```
$ yarn install --frozen-lockfile
$ yarn build
```

### Run Tests

#### Run Unit Tests 

```
$ yarn test
```
#### Run Lint Check

```
$ yarn lint
```



### Releasing a version

Release has been automatized by using Azure Pipelines.

To release a new version please go to [io-pagopa-commons project on Azure](https://dev.azure.com/pagopa-io/io-pagopa-commons) and manually run _pagopa.io-pagopa-commons.deploy_ the pipeline.
Be aware to choose the right release version between major|minor|patch
npm package: @pagopa/io-react-native-cbor
Description: Native support for CBOR
Author: PagoPA
Latest version: 1.4.0
Deprecated: Package no longer supported. Replaced by @pagopa/io-react-native-iso18013.

# @pagopa/io-react-native-cbor

React-native implementation of CBOR decoding and COSE signing and verifying.
Based on native libraries:

- https://github.com/pagopa/cbor-ios
- https://github.com/pagopa/iso18013-android

## Installation

```sh
npm install @pagopa/io-react-native-cbor
```

or

```sh
yarn add @pagopa/io-react-native-cbor
```

## Modules

- [CBOR](/src/cbor/README.md)
- [COSE](/src/cose/README.md)

## Example

There is an example app which you can use to try and understand how to use this package:

```sh
cd example

yarn install

# For iOS
yarn ios

# For Android
yarn android
```
npm package: @pagopa/io-react-native-cie-pid
Description: A RN library for pid issuing based on native IPZS SDK
Author: PagoPA
Latest version: 0.1.4

# ⚡️ @pagopa/io-react-native-cie-pid

![CI workflow](https://github.com/pagopa/io-react-native-cie-pid/actions/workflows/ci.yml/badge.svg)

A RN library for pid issuing based on native IPZS Android SDK (iOS will be available soon)

## Installation

```sh
npm install @pagopa/io-react-native-cie-pid
```

## Usage

```js
import CieManager from '@pagopa/io-react-native-cie-pid';

// ...

const startCieManager = async () => {
  try {
    await CieManager.start();
    await CieManager.onEvent(handleCieEvent);
    await CieManager.onError(handleCieError);
    await CieManager.onSuccess(handleCieSuccess);
  } catch (error) {
    console.error(error);
  }
};

const stopCieManager = async () => {
  try {
    await CieManager.stopListeningNFC();
    await CieManager.removeAllListeners();
    setCieStarted(false);
  } catch (error) {
    console.error(error);
  }
};
```

## Example

You can use the sample app to test and understand how to use the library.

```bash
cd example

yarn install

cd ios && bundler exec pod install && cd ..

# To use iOS
yarn ios

# To use Android
yarn android
```

## Contributing

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

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @pagopa/io-react-native-iso18013
Description: React Native bridge for iso18013 methods
Author: LazyAfternoons
Latest version: 0.8.0

# @pagopa/io-react-native-iso18013

This library provides a React Native module based on [iso18013-android](https://github.com/pagopa/iso18013-android) and [iso18013-ios](https://github.com/pagopa/iso18013-ios) which allows proximity presentation according to the ISO 18013-5 standard, remote presentation according to the ISO 18013-7 standard, decoding of CBOR data and management of COSE verify and sign operations.

## Installation

```sh
npm install @pagopa/io-react-native-iso18013
```

## Usage

This library includes two native modules for both iOS and Android:

- [IoReactNativeIso18013](src/iso18013/iso18013-5/proximity.ts) for ISO 18013-5 and ISO 18013-7 implementations;
- [IoReactNativeCbor](src/cbor/index.ts) for CBOR and COSE implementations.

On the javascript side, the library exposes the following modules:

- [ISO18013-5](src/iso18013/iso18013-5/README.md): Proximity presentation according to the ISO 18013-5 standard which is part of the `IoReactNativeIso18013` module;
- [ISO18013-7](src/iso18013/iso18013-7/README.md): Remote presentation according to the ISO 18013-7 standard which is part of the `IoReactNativeIso18013` module;
- [CBOR](src/cbor/cbor/README.md): Decoding of CBOR data into readable objects which is part of the `IoReactNativeCbor` module;
- [COSE](src/cbor/cose/README.md): Management of COSE verify and sign operations which is part of the `IoReactNativeCbor` module.

## Contributing

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

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @pagopa/io-react-native-login-utils
Description: Login functions for App IO
Author: PagoPa
Latest version: 1.2.0

# @pagopa/io-react-native-login-utils

test

## Installation

```sh
npm install @pagopa/io-react-native-login-utils
```

## Usage

```js
import { getRedirects } from '@pagopa/io-react-native-login-utils';

// ...

const result = await getRedirects('https://tinyurl.com/testG0', {}, '');
```

## Contributing

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

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)