open-index/open-npm huggingface dataset:
npm package: @kekepass/pass
Description: Pass SDK for Apple and Google Wallet
Author: KeisukeYamashita
Latest version: 0.1.5

# Apple and Google Wallet library for Node.js

Library for creating Apple Wallet and Google Wallet passes in Node.js.

## Installation

```console
npm i @kekepass/pass
```

## Preparation

You'll need to have a signing certificate to issue a valid pass.

### Apple signing certificate

Access the [Apple Developer](https://developer.apple.com/account/resources/identifiers/list/passTypeId)'s page.

#### 1. Create an identifiers

Click the`Identifiers` tab and change the filter type to `Pass Type IDs` from `App IDs`.
Then, create an new identifier.

#### 2. Create a certificate

Click the `Certificates` tab and create a new certificate.
Chose `Pass Type ID` as a certificate type and choose the identifier you created in the previous step.

You will need a certificate signing request (CSR) to create a certificate.

Download the certificate `pass.cer` and add (download and drop) it to the Keychain Access app.

#### 3. Download Apple WWDR certificate

From the [Apple PKI](https://www.apple.com/certificateauthority/) page, download the `Worldwide Developer Relations - G4` certificate.

#### 4. Export the certificate as P12 file

Open the Keychain Access app and find the certificate you added in step 2.
Right-click on the certificate and export it as a `.p12` file.

On export, set a password for the file.

## Usage

Use this library to create Apple Wallet and Google Wallet passes in Node.js.

## License

This project is distributed under the Apache License, Version 2.0, see [LICENSE](LICENSE) for more information.