bloop-nfc-scanner
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Bloop NFC Scanner Browser SDK

Release codecov

SDK to ease the integration of the Bloop NFC Scanner into browser applications.

Installation

npm i bloop-nfc-scanner

Usage

The SDK has two modes of operations. You can either register a UID capture to continuously capture incoming UIDs or you can capture a single UID via a promise.

Continuous capture

import {registerUidCapture} from 'bloop-nfc-scanner';

registerUidCapture(uid => {
    console.log(uid);
});

The register function returns a callback to unregister the capture again.

Single capture

import {captureUid} from 'bloop-nfc-scanner';

const uid = await captureUid();
console.log(uid);

You can also pass in an AbortSignal in order to cancel a running capture.

Demo

To see the full functionality including error handling and such, clone this repository and run the following commands:

npm i
npm start

Readme

Keywords

none

Package Sidebar

Install

npm i bloop-nfc-scanner

Weekly Downloads

0

Version

1.0.2

License

BSD-2-Clause

Unpacked Size

19.2 kB

Total Files

8

Last publish

Collaborators

  • dasprid