# peerjs-modern

[![npm package peerjs-modern](https://img.shields.io/npm/v/peerjs-modern?style=flat-square)](http://npm.im/peerjs-modern)
[![dev dep typescript version](https://img.shields.io/github/package-json/dependency-version/EqualMa/peerjs-modern/dev/typescript?style=flat-square)]()
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)

## Features

This is a fork repo of [peerjs](https://github.com/peers/peerjs) which provides a modern api:

- es modules and cjs modules in npm package
- [wip] es module bundle
- [wip] async and async iterator api
- [wip] web stream api ([ReadableStream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) etc.)

## Install

```shell
npm install peerjs-modern
yarn add peerjs-modern
```

## Usage

Currently this package provides same api with peerjs, so you can refer to [peerjs docs](https://peerjs.com/docs.html#api)
