{"id":20163502,"url":"https://github.com/sjinks/node-inet-xtoy","last_synced_at":"2026-03-03T15:33:32.905Z","repository":{"id":34922700,"uuid":"190355783","full_name":"sjinks/node-inet-xtoy","owner":"sjinks","description":"inet_ntop() and inet_pton() bindings for Node.js","archived":false,"fork":false,"pushed_at":"2026-02-23T01:59:50.000Z","size":1188,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-23T08:16:14.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/inet_xtoy","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/sjinks.png","metadata":{"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]},"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":"2019-06-05T08:24:58.000Z","updated_at":"2026-02-23T01:59:53.000Z","dependencies_parsed_at":"2023-11-27T02:25:57.224Z","dependency_job_id":"aeca7348-e504-4abb-9f8f-bba6add149d0","html_url":"https://github.com/sjinks/node-inet-xtoy","commit_stats":{"total_commits":241,"total_committers":6,"mean_commits":"40.166666666666664","dds":0.6390041493775933,"last_synced_commit":"232c83b8cb5a526ed088571ad7bf2669bc00b8c3"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/sjinks/node-inet-xtoy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-inet-xtoy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-inet-xtoy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-inet-xtoy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-inet-xtoy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/node-inet-xtoy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-inet-xtoy/sbom","scorecard":{"id":333643,"data":{"date":"2025-08-11","repo":{"name":"github.com/sjinks/node-inet-xtoy","commit":"ed582311fea920544b17a38cced409612d21701e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.8,"checks":[{"name":"Maintained","score":10,"reason":"30 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":"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":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","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":10,"reason":"no dangerous workflow patterns detected","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":10,"reason":"all dependencies are pinned","details":["Info:   9 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:19","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/publish-npm.yml:16","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/publish-npm.yml:35","Info: topLevel 'contents' permission set to 'read': .github/workflows/build-and-test.yml:10","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/publish-npm.yml:9"],"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":"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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.2.7 not signed: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/142682198","Warn: release artifact 1.2.6 not signed: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/127062523","Warn: release artifact 1.2.5 not signed: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/114632966","Warn: release artifact 1.2.4 not signed: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/104041695","Warn: release artifact 1.2.3 not signed: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/104040346","Warn: release artifact 1.2.7 does not have provenance: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/142682198","Warn: release artifact 1.2.6 does not have provenance: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/127062523","Warn: release artifact 1.2.5 does not have provenance: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/114632966","Warn: release artifact 1.2.4 does not have provenance: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/104041695","Warn: release artifact 1.2.3 does not have provenance: https://api.github.com/repos/sjinks/node-inet-xtoy/releases/104040346"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (29) 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":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"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-18T04:10:09.249Z","repository_id":34922700,"created_at":"2025-08-18T04:10:09.249Z","updated_at":"2025-08-18T04:10:09.249Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30050479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-14T00:29:52.866Z","updated_at":"2026-03-03T15:33:32.874Z","avatar_url":"https://github.com/sjinks.png","language":"JavaScript","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# node-inet-xtoy\n\n[![Build and Test](https://github.com/sjinks/node-inet-xtoy/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/sjinks/node-inet-xtoy/actions/workflows/build-and-test.yml)\n[![CodeQL](https://github.com/sjinks/node-inet-xtoy/actions/workflows/codeql.yml/badge.svg)](https://github.com/sjinks/node-inet-xtoy/actions/workflows/codeql.yml)\n\n`inet_ntop()` and `inet_pton()` bindings for Node.js\n\n# Installation\n\n```sh\nnpm install inet_xtoy\n```\n\n# Example\n\n```js\nconst { inet_ntop, inet_pton } = require('inet_xtoy');\n\nconsole.log(inet_pton('127.0.0.1'));\nconsole.log(inet_pton('::1'));\nconsole.log(inet_ntop(inet_pton('127.0.0.1')));\nconsole.log(inet_ntop(inet_pton('::1')));\n```\n\n# API\n\n**inet_ntop(buf)** converts an IPv4 or IPv6 address `buf` from binary to text form.\n\n`buf` is expected to be a 4 (IPv4) or 16 (IPv6) bytes long String or Buffer.\n\nReturns the IP address as a string or throws an Error in case the call to [`inet_ntop(3)`](http://man7.org/linux/man-pages/man3/inet_ntop.3.html) fails.\n\nThrows `TypeError` when the number of arguments is not 1, when `buf` is neither String nor Buffer or when the length of `buf` is neither 4 nor 16.\n\n**inet_pton(ip)** converts an IPv4 or IPv6 address `buf` from text to binary form.\n\n`ip` is expected to be a string. The function returns `null` if `ip` is not a valid IP address.\n\nReturns `Buffer` with the binary form of the given `ip`; the length of the buffer is either 4 or 16 bytes.\n\nThrows `TypeError` when the number of arguments is not 1 or when `ip` is not a string.\n\nThrows `Error` when a call to [`inet_pton(3)`](http://man7.org/linux/man-pages/man3/inet_pton.3.html) fails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fnode-inet-xtoy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Fnode-inet-xtoy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fnode-inet-xtoy/lists"}