ngx-web-serial 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
[![npm version](https://badge.fury.io/js/angular-web-serial.svg?icon=si%3Anpm)](https://badge.fury.io/js/angular-web-serial)
|
2
1
|
[![Publish to GitHub Packages](https://github.com/mattfors/ngx-web-serial/actions/workflows/build.yml/badge.svg)](https://github.com/mattfors/ngx-web-serial/actions/workflows/build.yml)
|
3
|
-
[![codecov](https://codecov.io/github/mattfors/ngx-web-serial/graph/badge.svg?token=GRL2B8OCW5)](https://codecov.io/github/mattfors/ngx-web-serial)
|
4
2
|
|
5
3
|
# Angular Web Serial
|
6
4
|
|
@@ -9,14 +7,14 @@ Angular Web Serial is an angular module for connecting to serial devices with th
|
|
9
7
|
## Installation
|
10
8
|
|
11
9
|
```shell
|
12
|
-
npm i
|
10
|
+
npm i ngx-web-serial
|
13
11
|
```
|
14
12
|
|
15
13
|
## Usage
|
16
14
|
Below is the basic usage of the module. A pipe is used to accumulate the raw data from the serial port.
|
17
15
|
```typescript
|
18
16
|
import { Component } from '@angular/core';
|
19
|
-
import { AngularSerialService, provideAngularSerial } from '
|
17
|
+
import { AngularSerialService, provideAngularSerial } from 'ngx-web-serial';
|
20
18
|
import { Observable, scan } from 'rxjs';
|
21
19
|
import { AsyncPipe } from '@angular/common';
|
22
20
|
|