UNPKG

@digital-passports/javascript-sdk

Version:

JavaScript SDK for interacting with the Digital Passport Hub REST API.

16 lines (13 loc) 429 B
# Svelte Example This example demonstrates how to use the Digital Passport Hub JavaScript SDK in a Svelte application. ## Usage 1. Copy `App.svelte` into your Svelte project (e.g., `src/App.svelte`). 2. Install the SDK: ``` npm install @digital-passports/javascript-sdk ``` 3. Start your Svelte app: ``` npm run dev ``` 4. Enter your API key, then use the buttons to list or create passports.