Update README.md

This commit is contained in:
Koushik Dutta
2022-02-11 15:17:16 -08:00
committed by GitHub
parent edad2cde8f
commit b94eaf623b

View File

@@ -1,3 +1,5 @@
# Use the Scrypted SDK from the command line or web
```js
import { connectScryptedClient, OnOff } from '@scrypted/web-sdk';
@@ -20,6 +22,8 @@ async function example() {
example();
```
# Running the Example
```sh
npm -g install ts-node
ts-node examples/example.ts