add .nvmrc
This commit is contained in:
10
README.md
10
README.md
@@ -19,12 +19,9 @@ bun install
|
||||
## Usage
|
||||
|
||||
```typescript
|
||||
import { RtmpPush } from '@techniker-me/rtmp-push';
|
||||
import {RtmpPush} from '@techniker-me/rtmp-push';
|
||||
|
||||
const rtmpPush = new RtmpPush(
|
||||
'https://example.com/video.ts',
|
||||
'rtmp://ingest.example.com:80/ingest'
|
||||
);
|
||||
const rtmpPush = new RtmpPush('https://example.com/video.ts', 'rtmp://ingest.example.com:80/ingest');
|
||||
|
||||
// Start streaming
|
||||
rtmpPush.start('stream-key', ['h264', 'aac']);
|
||||
@@ -43,16 +40,19 @@ rtmpPush.stop();
|
||||
This package includes comprehensive tests for all features:
|
||||
|
||||
### Run all tests
|
||||
|
||||
```bash
|
||||
bun test
|
||||
```
|
||||
|
||||
### Run tests in watch mode
|
||||
|
||||
```bash
|
||||
bun test --watch
|
||||
```
|
||||
|
||||
### Run tests with coverage
|
||||
|
||||
```bash
|
||||
bun test --coverage
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user