Socket
Socket
Sign inDemoInstall

bloop-nfc-scanner

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bloop-nfc-scanner

Bloop NFC Scanner Browser SDK


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.2 (2023-12-27)

Bug Fixes

  • detect key presses via key code instead of localized key (01a4845)

Readme

Source

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

FAQs

Last updated on 27 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc