Socket
Socket
Sign inDemoInstall

netlink-nfc

Package Overview
Dependencies
99
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    netlink-nfc

Access linux NFC adapters through netlink


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

NodeJS library for accessing netlink NFC sockets (uses N-API).

This library only supports reading target IDs, and requires Node 8.6.0 or higher.

Installation

Step 1: Prerequisites

This module requires Linux with netlink support and NFC (kernel) drivers. In order to compile the module you need to install libnl-3-dev and libnl-genl-3-dev.

On Linux, you want:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libnl-3-dev libnl-genl-3-dev

Step 2: Installation

To install it, use npm:

npm install netlink-nfc

Initialization and Information

const nfc = require('netlink-nfc');

console.log(nfc);

const adapters = nfc.getAdapters();
console.log(adapters);

const adapter = Object.values(adapters)[0];

adapter.startPolling(nfc.constants.NFC_PROTO_MIFARE | nfc.constants.NFC_PROTO_ISO14443);

nfc.on('tag.read', console.log);

FAQs

Last updated on 05 Sep 2018

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