{"id":13799628,"url":"https://github.com/silverwind/ip-ptr","last_synced_at":"2025-03-17T21:30:30.650Z","repository":{"id":57276443,"uuid":"79274740","full_name":"silverwind/ip-ptr","owner":"silverwind","description":"Get the PTR name for a given IPv4 or IPv6 address","archived":false,"fork":false,"pushed_at":"2023-11-09T15:24:48.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-08T09:47:54.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverwind.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":"2017-01-17T21:41:07.000Z","updated_at":"2024-06-19T16:05:02.549Z","dependencies_parsed_at":"2024-06-19T16:04:58.512Z","dependency_job_id":"c9d2be32-f27c-4c85-9508-19ea54d21d8c","html_url":"https://github.com/silverwind/ip-ptr","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"a00b0f63e860f338ded490e716c4ebe6f568fcfe"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fip-ptr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fip-ptr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fip-ptr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fip-ptr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverwind","download_url":"https://codeload.github.com/silverwind/ip-ptr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885926,"owners_count":20363644,"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":[],"created_at":"2024-08-04T00:01:04.617Z","updated_at":"2025-03-17T21:30:30.388Z","avatar_url":"https://github.com/silverwind.png","language":"JavaScript","funding_links":[],"categories":["Fingerprint"],"sub_categories":["IP"],"readme":"# ip-ptr\n[![](https://img.shields.io/npm/v/ip-ptr.svg?style=flat)](https://www.npmjs.org/package/ip-ptr) [![](https://img.shields.io/npm/dm/ip-ptr.svg)](https://www.npmjs.org/package/ip-ptr) [![](https://api.travis-ci.org/silverwind/ip-ptr.svg?style=flat)](https://travis-ci.org/silverwind/ip-ptr)\n\u003e Get the PTR name for a given IPv4 or IPv6 address\n\n## Installation\n```console\n$ npm i ip-ptr\n```\n## Example\n```js\nconst ipPtr = require('ip-ptr');\n\nipPtr('1.2.3.4');\n//=\u003e 4.3.2.1.in-addr.arpa\nipPtr('2001:db8::1');\n//=\u003e 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa\n```\n\n## API\n### ipPtr(ip)\n- `ip` *string* - A IPv4 or IPv6 address.\n\nWill throw on if `ip` is not a valid IP address.\n\n© [silverwind](https://github.com/silverwind), distributed under BSD licence\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fip-ptr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverwind%2Fip-ptr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fip-ptr/lists"}