New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nfcutils

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nfcutils

Capacitor plugin providing NFC functionalities

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
111
increased by1287.5%
Maintainers
0
Weekly downloads
 
Created
Source

NFCUtils - plugin for Capacitor

Capacitor plugin providing NFC functionalities

Supported Platforms

  • ✅ Android
  • ❌ iOS (not yet implemented)
  • 🚫 Web/PWA (not supported, see: Web NFC API )

NFC Tag Technologies

  • NDEF
  • MifareUltralight

Install

npm install nfcutils
npx cap sync

Permissions

Android

AndroidManifest.xml

<uses-permission android:name="android.permission.NFC" />

API

addListener('nfcScanned', ...)

addListener(eventName: 'nfcScanned', listenerFunc: (event: NFCScannedEvent) => void) => Promise<PluginListenerHandle>

Listen for a scanned NFC event

ParamType
eventName'nfcScanned'
listenerFunc(event: NFCScannedEvent) => void

Returns: Promise<PluginListenerHandle>


addListener('scanError', ...)

addListener(eventName: 'scanError', listenerFunc: (event: ScanErrorEvent) => void) => Promise<PluginListenerHandle>

Listen for a scan error event

ParamType
eventName'scanError'
listenerFunc(event: ScanErrorEvent) => void

Returns: Promise<PluginListenerHandle>


startReading()

startReading() => Promise<void>

Start listening for NFC read


stopReading()

stopReading() => Promise<void>

Stop listening for NFC read


isSupported()

isSupported() => Promise<{ supported: boolean; }>

Check if NFC is supported

Returns: Promise<{ supported: boolean; }>


removeAllListeners()

removeAllListeners() => Promise<void>

Removes all listeners.


Interfaces

PluginListenerHandle
PropType
remove() => Promise<void>
NFCScannedEvent

Scanned NFC contents

PropType
datastring
tagInfo{ id: string; type: string; }
ScanErrorEvent

Scan error

Keywords

FAQs

Package last updated on 07 Feb 2025

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc