{"id":20901548,"url":"https://github.com/willfarrell/ip-cidr-rebase","last_synced_at":"2025-07-25T01:06:50.711Z","repository":{"id":57276480,"uuid":"115164526","full_name":"willfarrell/ip-cidr-rebase","owner":"willfarrell","description":"Rebase CIDR into smaller subnets","archived":false,"fork":false,"pushed_at":"2017-12-23T02:54:35.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T11:44:39.420Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willfarrell.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}},"created_at":"2017-12-23T02:22:13.000Z","updated_at":"2017-12-23T02:50:56.000Z","dependencies_parsed_at":"2022-08-25T01:14:16.798Z","dependency_job_id":null,"html_url":"https://github.com/willfarrell/ip-cidr-rebase","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/willfarrell/ip-cidr-rebase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fip-cidr-rebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fip-cidr-rebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fip-cidr-rebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fip-cidr-rebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/ip-cidr-rebase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fip-cidr-rebase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266936384,"owners_count":24009407,"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-07-24T02:00:09.469Z","response_time":99,"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":[],"created_at":"2024-11-18T11:35:56.612Z","updated_at":"2025-07-25T01:06:50.688Z","avatar_url":"https://github.com/willfarrell.png","language":"JavaScript","readme":"# ip-cidr-rebase\nRebase CIDR into smaller subnets.\n\nWhy does this exist? Well, AWS WAF only allows `[8,16,24,32]`, using this function you can convert `x.x.x.x/20` into \n16 `x.x.x.x/24` CIDR Ranges. Great for build scripts.\n\n## Install\n```bash\nnpm i ip-cidr-rebase\n```\n\n## Use\n```javascript\nconst cidrRebase = require('ip-cidr-rebase');\n\nconst cidr = '192.168.0.0/20';\n\nconst cidrs = cidrRebase(cidr, [8,16,24,32]);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fip-cidr-rebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fip-cidr-rebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fip-cidr-rebase/lists"}