Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

explorenfc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

explorenfc

Explore NFC Wrapper

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

What is this?

A super simple NodeJS Library to read and write NFC NDEF records on a Raspberry Pi with an NXP Explore NFC shield

Usage

Prerequesities

  1. Install NFC Explore software on your device as per http://www.nxp.com/documents/application_note/AN11480.pdf
  2. Install this module npm install explorenfc

Read contents

var nfc = require("explorenfc");
nfc.init("/usr/bin/explorenfc-basic");

nfc.read(function(nfcEvent){
  if(nfcEvent){
    console.log("id", nfcEvent.id);
    console.log("value", nfcEvent.value);
  }else{
    console.log("no NFC Event");
  }
});

Write contents

var nfc = require("explorenfc");
nfc.init("/usr/bin/explorenfc-basic");
nfc.write("herp derp", function(writeOrNot){
  if(writeOrNot) console.log("NFC tag was written");
});

Limitations

Functionality is kept intentionally limited to keep this module very simple to use. Because of this we don't support much functionality.

Roughly how it works

On read we execute explorenfc-basic

On write we execute explorenfc-basic –w '<your message>' –t <type>

FAQs

Package last updated on 25 Nov 2015

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