{"id":19741605,"url":"https://github.com/hellomouse/node-tunfd","last_synced_at":"2026-02-14T08:32:27.411Z","repository":{"id":45499325,"uuid":"192905197","full_name":"hellomouse/node-tunfd","owner":"hellomouse","description":"mostly incomplete: please don't use this - Node.js native module (N-API) for creating and configuring tun/tap interfaces and maybe also more things","archived":false,"fork":false,"pushed_at":"2023-02-03T21:53:06.000Z","size":36,"stargazers_count":8,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T15:29:52.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hellomouse.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":"2019-06-20T11:09:52.000Z","updated_at":"2023-08-31T15:12:14.000Z","dependencies_parsed_at":"2023-02-18T11:17:49.430Z","dependency_job_id":null,"html_url":"https://github.com/hellomouse/node-tunfd","commit_stats":null,"previous_names":["iczero/node-tunfd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellomouse/node-tunfd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomouse%2Fnode-tunfd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomouse%2Fnode-tunfd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomouse%2Fnode-tunfd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomouse%2Fnode-tunfd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellomouse","download_url":"https://codeload.github.com/hellomouse/node-tunfd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellomouse%2Fnode-tunfd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29440388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-12T01:27:09.974Z","updated_at":"2026-02-14T08:32:27.393Z","avatar_url":"https://github.com/hellomouse.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-tunfd\n\nIt makes tun/tap interfaces.\n\n## How to use\n\n```js\nconst tunfd = require('tunfd');\nconst fs = require('fs');\n\nlet iface = new tunfd.TunInterface({\n  // optional, kernel will automatically assign a name if not given here\n  name: 'tun0',\n  // can be either \"tun\" or \"tap\", default is \"tun\"\n  // tun mode gets you ip packets, tap mode gets you ethernet frames\n  mode: 'tun',\n  // set to true if you want the 4-byte packet information header\n  // default is false, which adds IFF_NO_PI to ifr_flags\n  pi: false\n});\n\n// if you want to know the auto-assigned name of the interface\nconsole.log(iface.name);\n// the fd of the new interface\nconsole.log(iface.fd);\n\n// how to get packets\nlet readStream = fs.createReadStream(null, { fd: iface.fd });\nreadStream.on('data', packet =\u003e { ... });\n// how to put packets\nlet writeStream = fs.createWriteStream(null, { fd: iface.fd });\nwriteStream.write(...);\n\n// fork()\nconsole.log(tunfd.fork());\n```\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellomouse%2Fnode-tunfd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellomouse%2Fnode-tunfd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellomouse%2Fnode-tunfd/lists"}