# cordova-plugin-pm80-scanner

> Laser scanner for PM80

Latest version **0.0.8** (published 2018-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-pm80-scanner
pnpm add cordova-plugin-pm80-scanner
yarn add cordova-plugin-pm80-scanner
bun add cordova-plugin-pm80-scanner
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2018-05-31 |
| First published | 2016-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 149.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ShineUm |
| Maintainers | shineum |
| Keywords | ecosystem:cordova, cordova-android, barcode, qrcode, laser, pm80, scanner |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-pm80-scanner
- Repository: https://github.com/shineum/cordova-plugin-pm80-scanner
- Homepage: https://github.com/shineum/cordova-plugin-pm80-scanner#readme
- Issues: https://github.com/shineum/cordova-plugin-pm80-scanner/issues
- npm.io page: https://npm.io/package/cordova-plugin-pm80-scanner

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2018-05-31
- 0.0.7 — 2017-02-15
- 0.0.6 — 2017-02-15
- 0.0.5 — 2017-02-15
- 0.0.4 — 2017-01-31
- 0.0.3 — 2017-01-31
- 0.0.2 — 2017-01-31
- 0.0.1 — 2016-12-06

## README

# cordova-plugin-pm80-scanner
Cordova Beam Scanner for Point Mobile PM80

# Install

```javascript

cordova plugin add cordova-plugin-pm80-scanner

```

# Usages

### 1. Scan

```javascript
cordova.plugins.pm80scanner.scan(successCallback, errorCallback);
// then callbacks will be set and scanner will be ready.

var successCallback = function(result, metadata) {
  // metadata.type
  console.log(result, metadata);  
}

var errorCallback = function(error) {
  console.log(error);
}
```


```javascript
cordova.plugins.pm80scanner.scan();
// if you already set callbacks, calling scan() without parameters will work also.

```

### 2. Cancel

```javascript
cordova.plugins.pm80scanner.cancel();
// then the scanner is off and error callback will be fired with error message of "USER_CANCEL".

```

### 3. Beep

```javascript
cordova.plugins.pm80scanner.beep(mode);
// to control beep when the scanner reads the codes. mode : true or false

```

### 4. Set Callbacks

```javascript
cordova.plugins.pm80scanner.set(successCallback, errorCallback);
// Setting callback functions to read code with side buttons.

```

### 5. Set Trigger Mode

```javascript
cordova.plugins.pm80scanner.setTriggerMode(mode);
// Set scanner trigger mode.

// Available modes are:
// cordova.plugins.pm80scanner.TRIGGER_MODE.ONESHOT
// cordova.plugins.pm80scanner.TRIGGER_MODE.AUTO
// cordova.plugins.pm80scanner.TRIGGER_MODE.CONTINUOUS

```

# history

### 0.0.8
- Callback returns barcode types as metadata

### 0.0.6
- Typo correction on description

### 0.0.5
- Support to change scanner trigger mode


# License

MIT

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