{"id":18441826,"url":"https://github.com/camme/node-nfc","last_synced_at":"2025-04-07T22:32:43.135Z","repository":{"id":64074565,"uuid":"8721199","full_name":"camme/node-nfc","owner":"camme","description":"A first try at binding libnfc to node. This project is right now not good enough to use.","archived":false,"fork":false,"pushed_at":"2016-07-22T17:51:16.000Z","size":150,"stargazers_count":68,"open_issues_count":7,"forks_count":39,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-05-13T08:45:46.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/camme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-12T06:01:56.000Z","updated_at":"2024-01-09T21:32:04.000Z","dependencies_parsed_at":"2022-12-06T11:01:02.987Z","dependency_job_id":null,"html_url":"https://github.com/camme/node-nfc","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camme%2Fnode-nfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camme%2Fnode-nfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camme%2Fnode-nfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camme%2Fnode-nfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camme","download_url":"https://codeload.github.com/camme/node-nfc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223296861,"owners_count":17121962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T06:39:30.319Z","updated_at":"2024-11-06T06:39:31.113Z","avatar_url":"https://github.com/camme.png","language":"C++","readme":"node-nfc\n========\nA binding from libnfc to node.\nAt present,\nonly reading is supported.\n\n## Installation\n\n### Step 1: Prerequisites\nIn order to use the module you need to install libnfc and libusb.\nRead more about [libnfc here](http://nfc-tools.org/index.php?title=Libnfc).\n\nOn Linux, you want:\n\n    sudo apt-get update\n    sudo apt-get upgrade\n    sudo apt-get install libusb-dev libnfc\n\nOn MacOS X, you want:\n\n    brew update\n    brew doctor\n    brew install libusb-compat libnfc\n\n### Step 2: Installation\n\nTo install it, use npm:\n\n    npm install nfc\n    \nOr, to compile it yourself, make sure you have node-gyp:\n\n    node-gyp configure\n    node-gyp build\n\n### NPM errors\n\n- An error of **missing nfc.h** indicates that libnfc isn't installed correctly.\n\n### Runtime errors\n\n- An error of **Unable to claim USB interface (Permission denied)**\nindicates that another process has the interface. On MacOS X you can try:\n\n    $ sudo killall pcscd\n\n\n## Initialization and Information\n\n    var nfc  = require('nfc').nfc\n      , util = require('util')\n      ;\n\n    console.log('nfc.version(): ' + util.inspect(nfc.version(), { depth: null }));\n        // { name: 'libfnc', version: '1.7.0' }\n\n    console.log('nfc.scan(): ' + util.inspect(nfc.scan(), { depth: null }));\n        // { 'pn53x_usb:160:012': { name: 'SCM Micro / SCL3711-NFC\u0026RW', info: { chip: 'PN533 v2.7', ... } } }\n\n## Reading\n\n    var device = new nfc.NFC();\n    device.on('read', function(tag) {\n        // { deviceID: '...', name: '...', uid: '...', type: 0x04 (Mifare Classic) or 0x44 (Mifare Ultralight) }\n\n        if ((!!tag.data) \u0026\u0026 (!!tag.offset)) console.log(util.inspect(nfc.parse(tag.data.slice(tag.offset)), { depth: null }));\n    }).on('error', function(err) {\n        // handle background error;\n    }).start();\n    // optionally the start function may include the deviceID (e.g., 'pn53x_usb:160:012')\n\n## And an extra thanks to...\n\n[jeroenvollenbrock](https://github.com/jeroenvollenbrock) for the huge update he made to this project!\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 Camilo Tapia \u0026lt;camilo.tapia@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["Connectivity","Hardware Com"],"sub_categories":["NFC"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamme%2Fnode-nfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamme%2Fnode-nfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamme%2Fnode-nfc/lists"}