# screen-recording

> Fe recording

Latest version **1.0.5** (published 2023-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install screen-recording
pnpm add screen-recording
yarn add screen-recording
bun add screen-recording
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-07-11 |
| First published | 2023-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 368.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Djordje Mikic |
| Maintainers | djole0996 |

## Links

- npm: https://www.npmjs.com/package/screen-recording
- Repository: https://github.com/DjordjeMikic/screen-recording
- Homepage: https://github.com/DjordjeMikic/screen-recording#readme
- Issues: https://github.com/DjordjeMikic/screen-recording/issues
- npm.io page: https://npm.io/package/screen-recording

## Recent versions

- 1.0.5 (latest) — 2023-07-11
- 1.0.4 — 2023-07-07
- 1.0.3 — 2023-07-05
- 1.0.2 — 2023-07-04
- 1.0.0 — 2023-07-03

## README

# Screen recording

## Description
Simple js library for screen recording and saving it in webm format

### Install

npm

`npm install screen-recording`

yarn

`yarn add screen-recording`

### Usage

```js
  import { ScreenRecording } from 'screen-recording';

  const recording = ScreenRecording({
    processVideo: (blob: Blob) => void, // *Required (what to do with with video recorded),
    onEnded: (e: Event) => void, // Optional action which happens when you click on stop sharing popup
    processChunks: (chunk) => void, // Optional action which happens when chunk data is available.
    resetChunks: boolean, // Optional if you want to clean chunks after recording is stopped (then put true, default false)
    interval: number // Optional time interval for chunk creating (default 5sec)
  });

  // Start recording
  recording.startRecording();
  // Stop recording
  recording.stopRecording();
  // Check is recording in progress
  recording.getRecordingInProgress();
```

---
_Source: https://npm.io/package/screen-recording · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
