{"id":22761561,"url":"https://github.com/digoarthur/rfid-reader-input","last_synced_at":"2025-04-14T19:33:42.934Z","repository":{"id":230581246,"uuid":"779641566","full_name":"DIGOARTHUR/rfid-reader-input","owner":"DIGOARTHUR","description":"Connect your RFID reader and already have a component to capture the value.","archived":false,"fork":false,"pushed_at":"2024-05-11T15:27:26.000Z","size":105,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-03T03:05:30.176Z","etag":null,"topics":["attached","component","javascript","library","npm","opensource","reactjs","rfid-reader"],"latest_commit_sha":null,"homepage":"https://template-rfid-reader-input.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DIGOARTHUR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-30T11:44:43.000Z","updated_at":"2024-11-10T06:51:18.000Z","dependencies_parsed_at":"2024-05-11T16:44:31.933Z","dependency_job_id":null,"html_url":"https://github.com/DIGOARTHUR/rfid-reader-input","commit_stats":null,"previous_names":["digoarthur/rfid-reader-input"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIGOARTHUR%2Frfid-reader-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIGOARTHUR%2Frfid-reader-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIGOARTHUR%2Frfid-reader-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIGOARTHUR%2Frfid-reader-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DIGOARTHUR","download_url":"https://codeload.github.com/DIGOARTHUR/rfid-reader-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229200790,"owners_count":18035712,"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":["attached","component","javascript","library","npm","opensource","reactjs","rfid-reader"],"created_at":"2024-12-11T09:13:55.441Z","updated_at":"2024-12-11T09:13:56.041Z","avatar_url":"https://github.com/DIGOARTHUR.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!---\ndoc: update README.md\n----\u003e\n\n \u003c!--------------------------------------------------\u003e\n\u003c!------------------------------------ PROJECT BANNER--\u003e\n \u003c!--------------------------------------------------\u003e\n\u003ch1 align=\"center\"\u003e \u003c RFIDReaderInput / \u003e \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\n  \u003c!--------------------------------------------------\u003e\n \u003c!---------------------PROJECT ICON--\u003e\n  \u003c!--------------------------------------------------\u003e\n  \u003cimg src=\"https://github.com/DIGOARTHUR/rfid-reader-input/assets/59892368/a6367195-e847-4157-bffb-5932d73bd076\" alt=\"RFID-logo\" width=\"150px\" height=\"150px\"/\u003e\n  \u003cbr\u003e\n   \u003cbr\u003e\n  \u003ci\u003eCapture RFID reading from Your React app in an elegant and restricted way!!\u003c/i\u003e\n  \u003cbr\u003e\n\n\u003c/p\u003e\n\n\n\n \u003cbr\u003e\n   \u003cbr\u003e\n \u003c!--------------------------------------------------\u003e\n \u003c!------------------------------------SHIELDS PROJECT--\u003e\n  \u003c!--------------------------------------------------\u003e\n\u003cdiv align=\"center\"\u003e\n    \n ![NPM Paackage](https://img.shields.io/npm/v/rfid-reader-input?color=brightgreen\u0026label=NPM%20package\u0026logo=NPM\u0026logoColor=white)\n ![CodeFactor](https://img.shields.io/codefactor/grade/github/digoarthur/rfid-reader-input?color=brightgreen\u0026label=Code%20Quality\u0026logo=codefactor)\n ![GitHub](https://img.shields.io/github/license/digoarthur/rfid-reader-input)\n\n\u003c/div\u003e\n  \n\n \u003cdiv align=\"center\"\u003e\n     \n\u003cimg  alt=\"ReactJS\"  width=\"50\" height=\"50\" src=\"https://github.com/DIGOARTHUR/github-automated-repos/assets/59892368/11fe7e24-b5d7-47bf-814a-c8d5855e7ca8\"\u003e ![ReactJS](https://img.shields.io/badge/-ReactJS-blue)\n\u003cimg  alt=\"ViteJS\"  width=\"50\" height=\"50\" src=\"https://github.com/DIGOARTHUR/github-automated-repos/assets/59892368/f85aeacd-cea4-4280-9096-194da03e758e\"\u003e ![Check](https://img.shields.io/badge/-ViteJS-violet) \n\u003cimg  alt=\"NextJS\"  width=\"50\" height=\"50\" src=\"https://github.com/DIGOARTHUR/github-automated-repos/assets/59892368/6b213e2e-213a-489d-bbda-1dec9dcda585\"\u003e ![Check](https://img.shields.io/badge/-NextJS-gray)\n     \n  \u003c/div\u003e     \n\n \u003cbr\u003e\n  \u003cbr\u003e\n\n  \n \u003c!--------------------------------------------------\u003e\n \u003c!------------------------------------QUICK START--\u003e\n \u003c!---------------------------------------------------\u003e\n## 1. Installation\n\n```shell\n    npm install rfid-reader-input\n    # or\n    yarn add rfid-reader-input\n```\n\n## 2. Using Component\n\n\n```jsx\n    import { RFIDReaderInput } from 'rfid-reader-input'\n\n    ...\n\n    \u003cRFIDReaderInput\n      open={isOpenRFIDReaderInput}\n      onRequestClose={_handleCloseRFIDReaderInput}\n      handleCodeCardRFID={setCodecard}\n     /\u003e\n```\n\n## 3. Connect RFID card reader\n\n\u003cdiv align=\"center\"\u003e\n\n\n\n\u003cimg  alt=\"skills\"  width=\"480\"  src=\"https://github.com/DIGOARTHUR/rfid-reader-input/assets/59892368/f12b6f8c-1943-4df5-9609-159e682e08ec\"\u003e\n\n\u003c/div\u003e\n\n\n## 4. Swipe the card on the reader \n\n\u003cdiv align=\"center\"\u003e\n\n ![d20ac76d-b212-4730-955a-d6fa16efd887 (1) (1)](https://github.com/DIGOARTHUR/rfid-reader-input/assets/59892368/1895e25c-a881-4148-be4e-a95bef1b5bd3)\n\n\u003c/div\u003e\n  \n\n\n \u003cbr\u003e\n  \u003cbr\u003e\n   \u003cbr\u003e\n  \u003cbr\u003e\n\n\u003c!--------------------------------------------------------------------\u003e\n\u003c!------------------------------------SUMMARY-------------------------\u003e\n\u003c!--------------------------------------------------------------\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/DIGOARTHUR/how-to-build-NPM-package/tree/main#--sobre-a-aplicação\"\u003eAbout Aplication\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003ca href=\"https://github.com/DIGOARTHUR/how-to-build-NPM-package#--configurando-ambiente\"\u003e Library\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003c/p\u003e  \n\n------\u003e\n\n\n \u003c!--------------------------------------------------\u003e\n \u003c!------------------------------------DESCRIPTION--\u003e\n \u003c!--------------------------------------------------\u003e\n# \u003cimg  alt=\"skills\"  width=\"40\" height=\"40\" src=\"https://user-images.githubusercontent.com/59892368/148622497-164365e8-f6b0-4f40-bc75-a0ed4da6059b.png\"\u003e  About Library \u003c!---write here : talk a little about project: what's does, example.  --\u003e \n\u003e This library has a React component, \u003cRFIDReaderInput/\u003e, to facilitate data entry while reading from your RFID device. Use in your Dashboard systems to control presence, record processes linked to people, etc.\n\n## Advantages\n\n- Component already made. Install, import and use.\n- Void capturing digits from the keyboard.\n- Intuitive and customizable layout\n\n\n|                             RFIDReaderInput                             |\n| :-------------------------------------------------------------------: |\n|   ![image](https://github.com/DIGOARTHUR/rfid-reader-input/assets/59892368/97a940b0-21d2-4bb0-8fcc-79c8e98919b4) |\n\n\n\n\n\n\n  \u003cbr\u003e\n   \u003cbr\u003e\n  \u003cbr\u003e\n\n  \u003c!--------------------------------------------------\u003e\n\u003c!------------------------------------LIBRARY --\u003e\n \u003c!--------------------------------------------------\u003e\n \n# \u003cimg  alt=\"skills\"  width=\"80\" height=\"30\" src=\"https://user-images.githubusercontent.com/59892368/216092858-a64d3a99-1b90-4946-b917-76eadefffb54.svg\"\u003e  Library \u003c!---write here : demonstration of the application layout.  --\u003e\n\n## Import\n\n```jsx\n    import { RFIDReaderInput } from 'rfid-reader-input'\n```\n\n## Component\n\n```jsx\n     \u003cRFIDReaderInput\n      open={isOpenRFIDReaderInput}\n      onRequestClose={handleClose}\n      handleCodeCardRFID={setCodecard}\n      textTitle='RFID Identification'\n      textBody='Hold your card'\n     /\u003e\n```\n\n#### Props\n\n\u003e [!IMPORTANT]\n\u003e For the component to work, insert the properties correctly. You can follow the code example.\n\n- (_mandatory_) `open`  \u003c boolean \u003e : here a variable with the value of false or true is inserted to open the Input. \n- (_mandatory_) `onRequestClose` \u003c ( ) =\u003e void \u003e : receives a function to change the variable to the true state, closing the Input.\n- (_mandatory_) `handleCodeCardRFID`  \u003c (code: string) =\u003e void \u003e : Here a function is inserted that will receive the value captured from the reading device. It can be a state function coming from the parent component, or from a contextAPI. \n- (_optional_) `textTitle`: \u003c string \u003e : text to change the card title.  \n- (_optional_) `textBody`:  \u003c string \u003e : text to change the card body. \n\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003c!--------------------------------------------------\u003e\n\u003c!------------------------------------CODE EXAMPLE --\u003e\n\u003c!--------------------------------------------------\u003e\n# Code Example\n\n  \u003c!-------------------------------------------------\n### Download Template\n\n```npm\n\n```\n \u003c!--------------------------------------------------\u003e\n \n\u003e [!NOTE]\n\u003e Structured code in ViteJS \u003cimg  alt=\"skills\"  height=\"30\" src=\"https://github.com/DIGOARTHUR/rfid-reader-input/assets/59892368/32fd8a60-654d-4b60-8f31-19f5cc715ca1\"\u003e \n\n### Template Online\n\n\n\n[https://template-rfid-reader-input.vercel.app](https://template-rfid-reader-input.vercel.app)\n\n\n### Code \n\n#### \u003ca href=\"https://typicode.github.io/husky/#/\"\u003e\u003cimg  alt=\"Javascript\"  width=\"35\" height=\"35\" src=\"https://user-images.githubusercontent.com/59892368/210762527-ae3afe1f-fe36-46a9-98ad-35dbae4d1adf.svg\"\u003e\u003ca/\u003e  \u003ca href=\"https://typicode.github.io/husky/#/\"\u003e\u003cimg  alt=\"Javascript\"  width=\"35\" height=\"35\" src=\"https://user-images.githubusercontent.com/59892368/219095611-551d532a-30fc-4873-b00e-0a8bbf8bb5ec.svg\"\u003e\u003ca/\u003e\n\n```jsx    \nimport { useState } from 'react'\nimport './App.css'\n\nimport { RFIDReaderInput } from 'rfid-reader-input';\nfunction App() {\n  //CSS EFFECT\n  const [isHover, setIsHover] = useState(false);\n\n  const handleMouseEnter = () =\u003e {\n    setIsHover(true);\n  };\n  const handleMouseLeave = () =\u003e {\n    setIsHover(false);\n  };\n\n  const boxStyle = {\n    filter: isHover ? 'drop-shadow(0 0 5em #617874ee)' : ''\n  };\n\n\n  //RFIDReaderInput State\n  const [serialCard, setSerialcard] = useState('');\n  const [openCardReaderWindow, setOpenCardReaderWindow] = useState\u003cboolean\u003e(false)\n\n  function handleOpenRFID() { \n  \n    setOpenCardReaderWindow(true);\n}\n\nfunction handleCloseRFID() {\n    setOpenCardReaderWindow(false);\n  }\n\n  return (\n    \u003c\u003e\n      \u003cdiv\u003e\n      \u003cRFIDReaderInput isOpen={openCardReaderWindow} onRequestClose={handleCloseRFID} handleCodeCardRFID={ setSerialcard} /\u003e   \n        \u003ca href=\"https://github.com/DIGOARTHUR/rfid-reader-input\" target=\"_blank\"\u003e\n          \u003cimg src='https://github.com/DIGOARTHUR/rfid-reader-input/assets/59892368/a6367195-e847-4157-bffb-5932d73bd076'\n            onMouseEnter={handleMouseEnter}\n            onMouseLeave={handleMouseLeave}\n            style={boxStyle} alt=\"React logo\"\n          /\u003e\n        \u003c/a\u003e\n      \u003c/div\u003e\n      \u003ch1\u003e{serialCard?serialCard:'‹ RFIDReaderInput \t/›'}\u003c/h1\u003e\n      \u003cdiv className=\"card\"\u003e\n        \u003cbutton  onClick={handleOpenRFID}\u003e\n          Open RFIDReaderInput\n        \u003c/button\u003e\n        \u003cp\u003e\n          Edit \u003ccode\u003esrc/App.tsx\u003c/code\u003e and save to test\n        \u003c/p\u003e\n      \u003c/div\u003e\n      \u003cp className=\"read-the-docs\"\u003e\n        Click on the RFIDReaderInput  logo to learn more\n      \u003c/p\u003e\n    \u003c/\u003e\n  )\n}\n\nexport default App\n\n```\n\n---\n\n**Love rfid-reader-input? Give our repo a star ⭐ ⬆️.**\n\n`by`: [@digoarthur](https://www.linkedin.com/in/digoarthur/)\n\n`buy rfid reader device`: [rfid reader device](https://pt.aliexpress.com/item/1005006223111716.html?spm=a2g0o.productlist.main.9.298dlG1PlG1Pcy\u0026algo_pvid=1cdd1d61-b417-4c92-adad-21983a1f853c\u0026aem_p4p_detail=2024040608001417840825173963440008723047\u0026algo_exp_id=1cdd1d61-b417-4c92-adad-21983a1f853c-4\u0026pdp_npi=4%40dis%21EUR%2111.30%218.47%21%21%2186.59%2164.94%21%402101e62517124156146654903ebec3%2112000036353233564%21sea%21PT%21738581998%21\u0026curPageLogUid=OYyStQk6kG9U\u0026utparam-url=scene%3Asearch%7Cquery_from%3A\u0026search_p4p_id=2024040608001417840825173963440008723047_1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigoarthur%2Frfid-reader-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigoarthur%2Frfid-reader-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigoarthur%2Frfid-reader-input/lists"}