{"id":15573977,"url":"https://github.com/adonespitogo/node-set-ip-address","last_synced_at":"2025-10-08T19:09:48.914Z","repository":{"id":44201732,"uuid":"221615589","full_name":"adonespitogo/node-set-ip-address","owner":"adonespitogo","description":"Node module for setting up network interface(s) ip address, dns, and default routes of physical network interfaces, VLAN, and bridged interfaces.","archived":false,"fork":false,"pushed_at":"2025-09-17T05:54:56.000Z","size":250,"stargazers_count":17,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-19T14:03:27.962Z","etag":null,"topics":["bridge","network","vlan"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/adonespitogo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-11-14T05:01:46.000Z","updated_at":"2025-09-17T05:54:55.000Z","dependencies_parsed_at":"2024-06-19T01:39:10.732Z","dependency_job_id":"0cc88177-0391-4c4c-a1ce-e29924532c3f","html_url":"https://github.com/adonespitogo/node-set-ip-address","commit_stats":{"total_commits":111,"total_committers":10,"mean_commits":11.1,"dds":0.5225225225225225,"last_synced_commit":"897d949b9f26e4cdf76329e7d0a2cc3371ccee12"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/adonespitogo/node-set-ip-address","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonespitogo%2Fnode-set-ip-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonespitogo%2Fnode-set-ip-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonespitogo%2Fnode-set-ip-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonespitogo%2Fnode-set-ip-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adonespitogo","download_url":"https://codeload.github.com/adonespitogo/node-set-ip-address/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonespitogo%2Fnode-set-ip-address/sbom","scorecard":{"id":167439,"data":{"date":"2025-08-11","repo":{"name":"github.com/adonespitogo/node-set-ip-address","commit":"ca17d1be65a6d7826d2796fe7e9c94973cf8c357"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T15:18:21.044Z","repository_id":44201732,"created_at":"2025-08-16T15:18:21.044Z","updated_at":"2025-08-16T15:18:21.044Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000701,"owners_count":26082805,"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-10-08T02:00:06.501Z","response_time":56,"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":["bridge","network","vlan"],"created_at":"2024-10-02T18:14:56.658Z","updated_at":"2025-10-08T19:09:48.909Z","avatar_url":"https://github.com/adonespitogo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# set-ip-address\nNode module for setting up network interface(s) ip address, dns, and default routes of physical network interfaces, VLAN, and bridged interfaces.\n\n[![Build Status](https://travis-ci.com/adonespitogo/node-set-ip-address.svg?branch=master)](https://travis-ci.com/adonespitogo/node-set-ip-address)\n\nSupported linux network configurations:\n - netplan (/etc/netplan/)\n\nInstall\n---\n\n```\nyarn add set-ip-address\n```\n\nOR\n\n\n```\nnpm i --save set-ip-address\n```\n\nBasic Usage\n---\n\n```js\nvar set_ip_address = require('set-ip-address')\n```\n\n```js\nvar eth0 = {\n  interface: 'eth0',\n  ip_address: '10.0.0.1',\n  prefix: 20,\n  gateway: '10.0.0.1',\n  nameservers: ['8.8.8.8'], // nameservers can also be a string separated by space/comma, ex: `\"1.1.1.1, 8.8.8.8 8.8.4.4\"`\n  optional: true,           // dont wait for interfaces to avoid boot delay\n  match: {                  // netplan match option\n      name: 'eth0'\n  }\n}\n\nvar eth1 {\n  interface: 'eth1',\n  dhcp: true\n}\n\nset_ip_address.configure([eth0, eth1]).then(() =\u003e console.log('done writing config files')\n\n```\n\nCreate and Configure VLAN Interface\n---\n\nYou can create vlan interfaces by passing `vlanid` option. Make sure to load `8021q` module to the kernel:\n\n```\nsudo modprobe 8021q\n```\n\n```js\nvar eth0 = {\n  interface: 'eth0',\n  ip_address: '10.0.0.1',\n  prefix: 20,\n  gateway: '10.0.0.1',\n  nameservers: ['8.8.8.8']\n}\n\nvar vlan1 {\n  interface: 'eth0',\n  vlanid: 10,\n  ip_address: '20.0.0.1',\n  prefix: 20,\n  gateway: '20.0.0.1',\n  nameservers: ['8.8.8.8']\n}\n\nset_ip_address.configure([eth0, vlan1]).then(() =\u003e console.log('done writing config files')\n\n```\n\nCreate and Configure Bridged Interfaces\n---\n\n```js\nvar eth0 = {\n  interface: 'eth0',\n  manual: true\n}\n\nvar vlan1 {\n  interface: 'eth0',\n  vlanid: 10,\n  manual: true\n}\n\nvar br0 = {\n  interface: 'br0',\n  ip_address: '10.0.0.1',\n  prefix: 20,\n  gateway: '10.0.0.1',\n  nameservers: ['8.8.8.8'],\n  bridge_ports: ['eth0', 'eth0.10'],\n  bridge_opts: {\n      parameters: {\n          stp: true\n      }\n  }\n}\n\nset_ip_address\n  .configure([eth0, vlan1, br0])\n  .then(() =\u003e console.log('done writing config files')\n```\n\nCreate and Configure PPPoE Interface\n---\n\n```js\nvar ppp = {\n  provider: 'dsl-provider',\n  physical_interface: 'eth0'\n}\n\nset_ip_address\n  .configure([ppp])\n  .then(() =\u003e console.log('done writing config files')\n\n```\n\nRestart Networking Service\n---\n\n```js\nset_ip_address.restartService()\n  .then(() =\u003e console.log('network service restarted'))\n```\n\nLICENSE\n---\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadonespitogo%2Fnode-set-ip-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadonespitogo%2Fnode-set-ip-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadonespitogo%2Fnode-set-ip-address/lists"}