Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
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.
@justinribeiro/webnfc-reader
Advanced tools
Readme
A web component that uses WebNFC to read NFC tags.
addEventListener
.sound
attribute uses Web Audio API to make a beep when a tag is read (so hip)This web component is built with Polymer 3 and ES modules in mind and is available on NPM:
Install webnfc-reader:
npm i @justinribeiro/webnfc-reader
# or
yarn add @justinribeiro/webnfc-reader
After install, import into your project:
import 'webnfc-reader';
Finally, use as required:
<webnfc-reader sound></webnfc-reader>
Currently, WebNFC is behind a Chrome flag on Android. To enable, go to chrome://flags and enabled WebNFC on an Android compatible device.
Name | Description | Default |
---|---|---|
src | NFCWatchOptions.url property denotes the URL pattern which is used for matching the Web NFC Id of Web NFC messages which are being read. The default value "" means that no matching happens. | `` |
recordtype | NFCWatchOptions.recordType property denotes the string value which is used for matching the type property of each NFCRecord object in a Web NFC message. The default value "" means that no matching happens. | `` |
mediatype | NFCWatchOptions.mediaType property denotes the match pattern which is used for matching the type property of each NFCRecord object in a Web NFC message. The default value "" means that no matching happens. | `` |
mode | NFCWatchOptions.mode property denotes the NFCWatchMode value telling whether only Web NFC content or any NFC content will be watched. | any |
verbose | Status messages sent through custom event webnfc-reader-status | false |
sound | Make a beep sound through Web Audio API when tag is read | false |
Name | Description |
---|---|
webnfc-reader-status | Watch and status messages |
webnfc-reader-watch | Receive WebNFC records on tag read |
FAQs
Read nfc tags with WebNFC (currently behind a flag in Chrome for Android).
The npm package @justinribeiro/webnfc-reader receives a total of 2 weekly downloads. As such, @justinribeiro/webnfc-reader popularity was classified as not popular.
We found that @justinribeiro/webnfc-reader 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.
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.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.