{"id":30348967,"url":"https://github.com/webtorrent/load-ip-set","last_synced_at":"2025-08-18T19:45:07.918Z","repository":{"id":20714793,"uuid":"23998797","full_name":"webtorrent/load-ip-set","owner":"webtorrent","description":"download and parse ip-set (blocklist) files","archived":false,"fork":false,"pushed_at":"2025-08-12T14:51:59.000Z","size":76,"stargazers_count":23,"open_issues_count":7,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-18T19:38:00.535Z","etag":null,"topics":["blocklist","ip-address","javascript","nodejs"],"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/webtorrent.png","metadata":{"funding":{"github":["webtorrent","feross"]},"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":"2014-09-13T16:07:49.000Z","updated_at":"2025-01-27T17:18:17.000Z","dependencies_parsed_at":"2023-09-26T09:25:42.223Z","dependency_job_id":"1d375d1f-c222-46ad-af6f-577d6c47717c","html_url":"https://github.com/webtorrent/load-ip-set","commit_stats":{"total_commits":126,"total_committers":11,"mean_commits":"11.454545454545455","dds":0.5,"last_synced_commit":"778347ccdb88bb2bc25b00e11cfd73499a0265f2"},"previous_names":["feross/load-ip-set"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/webtorrent/load-ip-set","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webtorrent%2Fload-ip-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webtorrent%2Fload-ip-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webtorrent%2Fload-ip-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webtorrent%2Fload-ip-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webtorrent","download_url":"https://codeload.github.com/webtorrent/load-ip-set/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webtorrent%2Fload-ip-set/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271050819,"owners_count":24691184,"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-08-18T02:00:08.743Z","response_time":89,"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":["blocklist","ip-address","javascript","nodejs"],"created_at":"2025-08-18T19:45:05.244Z","updated_at":"2025-08-18T19:45:07.875Z","avatar_url":"https://github.com/webtorrent.png","language":"JavaScript","funding_links":["https://github.com/sponsors/webtorrent","https://github.com/sponsors/feross"],"categories":[],"sub_categories":[],"readme":"# load-ip-set [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[ci-image]: https://github.com/webtorrent/load-ip-set/actions/workflows/ci.yml/badge.svg?branch=master\n[ci-url]: https://github.com/webtorrent/load-ip-set/actions\n[npm-image]: https://img.shields.io/npm/v/load-ip-set.svg\n[npm-url]: https://npmjs.org/package/load-ip-set\n[downloads-image]: https://img.shields.io/npm/dm/load-ip-set.svg\n[downloads-url]: https://npmjs.org/package/load-ip-set\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n#### download and parse ip-set (blocklist) files\n\nThis module is used by [WebTorrent](http://webtorrent.io)!\n\n### Install\n\n```\nnpm install load-ip-set\n```\n\n### Usage\n\nGiven one of the following:\n\n- http/https url (gzip, deflate, or no compression)\n- filesystem path (gzip, or no compression)\n- array of ip addresses or `{ start: '1.2.3.0', end: '1.2.3.255' }` ip ranges\n\nthis module loads the ip set (downloading from the network, if necessary) and returns an [ip-set](https://www.npmjs.org/package/ip-set) object. An `ip-set` is just a mutable set data structure optimized for use with IPv4 and IPv6 addresses.\n\n```js\nimport loadIPSet from 'load-ip-set'\nloadIPSet('http://example.com/list.txt', (err, ipSet) =\u003e {\n  if (err) throw err\n  ipSet.contains('1.2.3.4') //=\u003e true\n  ipSet.contains('2.2.2.2') //=\u003e false\n})\n```\n\nThe second argument can be an optional `opts` object which will be passed to\n[`simple-get`](https://npmjs.com/package/simple-get) and the node.js core `http.request`\nmethod. This is useful for setting the user agent, for example.\n\n```js\nloadIPSet('http://example.com/list.txt', {\n  headers: {\n    'user-agent': 'WebTorrent (http://webtorrent.io)'\n  }\n}, (err, ipSet) =\u003e {\n\n})\n```\n\n### License\n\nMIT. Copyright (c) [Feross Aboukhadijeh](https://feross.org) and [WebTorrent, LLC](https://webtorrent.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebtorrent%2Fload-ip-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebtorrent%2Fload-ip-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebtorrent%2Fload-ip-set/lists"}