Skip to content

RXWA is a lightweight, modern, and fully TypeScript-based library that wraps the Web API's as RxJS Observables. It converts SignalR’s Promise-based and callback-based API into a reactive, composable model.

Notifications You must be signed in to change notification settings

ErsinCabuk/rxwa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RXWA

RXWA is a lightweight, modern, and fully TypeScript-based library that wraps the Web API's as RxJS Observables. It converts SignalR’s Promise-based and callback-based API into a reactive, composable model.

Installation

npm install rxwa

Usage

import { BaseSerialPort } from "rxwa";

export class XCardReaderAndWriter extends BaseSerialPort {
  writeMode() {
    const command = new Uint8Array([...])
    return this.write(command)
  }

  readCard() {
    return this.read()
      .pipe(
        // mapping
        // flows
        // etc.
      )
  }
}

About

RXWA is a lightweight, modern, and fully TypeScript-based library that wraps the Web API's as RxJS Observables. It converts SignalR’s Promise-based and callback-based API into a reactive, composable model.

Topics

Resources

Stars

Watchers

Forks