Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
nfc-poll-wrapper
Advanced tools
Changelog
[1.1.1] - 2022-04-15
stdbuf
commandReadme
Are you tired of trying to just read your NFC data from Node.JS? All other modules are outdated, not working or not
installing while nfc-poll
works just fine?
Yeah, me too.
This requires stdbuf to be available on your system (aside from nfc-poll
).
import { poll } from `nfc-poll-wrapper`;
const instance = poll();
instance.on("device", ({ raw, UID, NFCIDversion }: DeviceInfo) => {
console.info("Device ID:", UID, "v", NFCIDversion);
});
Only UID is extracted currently, feel free to change and/or open a PR or a request. Use
raw
if you need to extract data ASAP without forking this repo.
State
for available statesstdbuf
is probably not installed, read first argument (an Error) to verify
detailsProper docs will come someday (or not).
MIT.
FAQs
Are you tired of trying to just read your NFC data from Node.JS? All other modules are outdated, not working or not installing while `nfc-poll` works just fine?
The npm package nfc-poll-wrapper receives a total of 42 weekly downloads. As such, nfc-poll-wrapper popularity was classified as not popular.
We found that nfc-poll-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.