mirror of
https://github.com/koush/scrypted.git
synced 2026-02-11 01:32:02 +00:00
Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user