mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
27 lines
438 B
Markdown
27 lines
438 B
Markdown
# @lukehagar/plexjs Examples
|
|
|
|
This directory contains example scripts demonstrating how to use the @lukehagar/plexjs SDK.
|
|
|
|
## Prerequisites
|
|
|
|
- Node.js (v18 or higher)
|
|
- npm
|
|
|
|
## Setup
|
|
|
|
1. Copy `.env.template` to `.env`:
|
|
```bash
|
|
cp .env.template .env
|
|
```
|
|
|
|
2. Edit `.env` and add your actual credentials
|
|
|
|
## Running the Examples
|
|
|
|
To run an example file from the examples directory:
|
|
|
|
```bash
|
|
npm run build && npx tsx example.ts
|
|
```
|
|
|