npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

turbo-nfc-dubu

v1.0.7

Published

React Native TurboModule for NFC functionality

Readme

turbo-nfc

React Native TurboModule for NFC functionality

Installation

npm install turbo-nfc-dubu

Requirements

  • React Native >= 0.71.0
  • iOS 13+ (for CoreNFC support)
  • Android API level 24+ (Android 7.0+) for NFC support

iOS Setup

  1. Add the following to your Info.plist:
<key>NFCReaderUsageDescription</key>
<string>NFC 태그를 읽기 위해 NFC 접근 권한이 필요합니다</string>

<key>com.apple.developer.nfc.readersession.formats</key>
<array>
    <string>NDEF</string>
    <string>TAG</string>
</array>
  1. Enable Near Field Communication Tag Reading capability in your Xcode project:
    • Open your project in Xcode
    • Select your target
    • Go to "Signing & Capabilities"
    • Click "+" and add "Near Field Communication Tag Reading"

Note: Make sure your Apple Developer account has NFC capabilities enabled.

Android Setup

  1. Add the following permissions and features to your AndroidManifest.xml:
<!-- Permissions -->
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />

<!-- Features -->
<uses-feature android:name="android.hardware.nfc" android:required="true" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="false" />

Note: These permissions and features are required for the NFC functionality and related features to work properly on Android devices.

Features

  • Check NFC capability and status
  • Read NFC tags
  • Event notifications for NFC tag detection

Usage

import { TurboNfc } from "turbo-nfc-dubu";

// Check if NFC is supported on the device
const isSupported = await TurboNfc.isSupported();
if (!isSupported) {
  console.log("NFC is not supported on this device");
  return;
}

// Check if NFC is enabled
const isEnabled = await TurboNfc.isEnabled();
if (!isEnabled) {
  console.log("NFC is not enabled on this device");
  return;
}

// Add listener for NFC tag detection
TurboNfc.addListener("nfcTagDetected");

// Start reading NFC tags
try {
  const result = await TurboNfc.startTagReading();
  if (result.success && result.payload) {
    console.log("NFC tag content:", result.payload);
  }
} catch (error) {
  console.error("Error reading NFC tag:", error);
}

// Stop reading NFC tags
const stopped = await TurboNfc.stopTagReading();

// Remove listeners when no longer needed
TurboNfc.removeListeners(1);

API Reference

Methods

isSupported(): Promise<boolean>

Checks if the device supports NFC functionality.

isEnabled(): Promise<boolean>

Checks if NFC is currently enabled on the device.

startTagReading(): Promise<{ success: boolean; payload?: string }>

Starts the NFC tag reading session. Returns a promise that resolves with the tag data when a tag is read.

stopTagReading(): Promise<boolean>

Stops the current NFC tag reading session. Returns a promise that resolves with a boolean indicating if the session was successfully stopped.

addListener(eventName: string): void

Adds a listener for NFC events. Currently supported event: nfcTagDetected.

removeListeners(count: number): void

Removes listeners for NFC events. The count parameter specifies how many listeners to remove.

License

MIT