Skip to content

Commit

Permalink
feat: update readme example to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
N0chteil committed Oct 8, 2022
1 parent a28fb51 commit 89bc9ab
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Apple-Bridge

Retrieve data from Apple Services on macOS and Windows

# Example
```js
const AppleBridge = require("apple-bridge"),
bridge = new AppleBridge();


```ts
import { AppleBridge } from "apple-bridge";

const bridge = new AppleBridge();

let musicStatus;

bridge.on("playing", "music", (data) => {
Expand All @@ -28,5 +31,6 @@ bridge.on("stopped", "music", (data) => {
```

# Information
* On Windows, Apple TV and Apple Music data is retrieved from iTunes.
* On macOS, Apple TV and Apple Music data is retrieved from the respective app.

- On Windows, Apple TV and Apple Music data is retrieved from iTunes.
- On macOS, Apple TV and Apple Music data is retrieved from the respective app.

0 comments on commit 89bc9ab

Please sign in to comment.