{"id":21344509,"url":"https://github.com/s00d/serialport-node-rs","last_synced_at":"2025-09-15T08:37:19.180Z","repository":{"id":151225351,"uuid":"440517949","full_name":"s00d/serialport-node-rs","owner":"s00d","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-21T13:22:31.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T03:24:37.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/s00d.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-21T12:59:36.000Z","updated_at":"2021-12-21T13:22:36.000Z","dependencies_parsed_at":"2024-03-13T07:32:25.529Z","dependency_job_id":null,"html_url":"https://github.com/s00d/serialport-node-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s00d/serialport-node-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fserialport-node-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fserialport-node-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fserialport-node-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fserialport-node-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s00d","download_url":"https://codeload.github.com/s00d/serialport-node-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fserialport-node-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275230027,"owners_count":25427947,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-22T01:19:31.045Z","updated_at":"2025-09-15T08:37:19.171Z","avatar_url":"https://github.com/s00d.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serialport-node-rs\n\n\u003e serialport project for writing node package with napi-rs and serialport-rc.\n\n## Install this test package\n\n```\nnpm i serialport-node-rs --save\n```\n\n## Example\n\n```js\nimport { portsList, Port } from 'serialport-node-rs'\n\nlet posts = portsList();\n\nconsole.log(posts)\n\nfor (let i in posts) {\n  let port: Port|null = null;\n  try {\n    console.log(\"connection...\", i)\n    port = new Port(i);\n  } catch (e) {\n    console.log(\"connection error\", e)\n    continue;\n  }\n\n  console.log(\"port\", port)\n\n  setInterval(() =\u003e {\n    try {\n      console.log(\"AT\")\n      port!.write('AT')\n      console.log(port!.read()) // string buffer\n    } catch (e) {\n      console.log(\"connection read\", e)\n    }\n  }, 1000)\n\n}\n\n```\n\n## Release package\n\nEnsure you have set you **NPM_TOKEN** in `GitHub` project setting.\n\nIn `Settings -\u003e Secrets`, add **NPM_TOKEN** into it.\n\nWhen you want release package:\n\n```\nnpm version [\u003cnewversion\u003e | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=\u003cprerelease-id\u003e] | from-git]\n\ngit push\n```\n\nGitHub actions will do the rest job for you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs00d%2Fserialport-node-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs00d%2Fserialport-node-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs00d%2Fserialport-node-rs/lists"}