{"id":25067652,"url":"https://github.com/herrfugbaum/netcalc-cli","last_synced_at":"2025-08-02T02:12:10.004Z","repository":{"id":35894705,"uuid":"40181200","full_name":"herrfugbaum/netcalc-cli","owner":"herrfugbaum","description":"Various IPv4 calucations from the command line.","archived":false,"fork":false,"pushed_at":"2015-08-06T14:32:32.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T15:16:21.730Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/herrfugbaum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-04T11:38:27.000Z","updated_at":"2015-08-06T12:50:09.000Z","dependencies_parsed_at":"2022-09-05T12:40:47.087Z","dependency_job_id":null,"html_url":"https://github.com/herrfugbaum/netcalc-cli","commit_stats":null,"previous_names":["slamcode/netcalc-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/herrfugbaum/netcalc-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrfugbaum%2Fnetcalc-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrfugbaum%2Fnetcalc-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrfugbaum%2Fnetcalc-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrfugbaum%2Fnetcalc-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/herrfugbaum","download_url":"https://codeload.github.com/herrfugbaum/netcalc-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/herrfugbaum%2Fnetcalc-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268326739,"owners_count":24232496,"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-02T02:00:12.353Z","response_time":74,"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":"2025-02-06T20:58:18.581Z","updated_at":"2025-08-02T02:12:09.959Z","avatar_url":"https://github.com/herrfugbaum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**\n\n- [Installation](#installation)\n- [How to use](#how-to-use)\n    - [Some things to consider](#some-things-to-consider)\n  - [Basics](#basics)\n  - [IPv4 to binary](#ipv4-to-binary)\n  - [Min and max address](#min-and-max-address)\n  - [Range of a network](#range-of-a-network)\n  - [CIDR to netmask](#cidr-to-netmask)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\n*Note: You need node.js installed on your PC.*\n\n```\nnpm install netcalc-cli -g\n```\n\n## How to use\n\nIn your commandline enter the one of the following options:\n\n#### Some things to consider\n\n* *When commiting strings use double quotes.*\n* *\u003e_ before the code shall symbolise your commandline input. Don't actually type these.*\n* *// are comments don't type these either.*\n\n### Basics\n\n```\n\u003e_ netcalc // shows usage and options\n\u003e_ netcalc -h // shows usage and options\n\u003e_ netcalc --help // shows usage and options\n\u003e_ netcalc - V // show version of netcalc-cli\n```\n\n### IPv4 to binary\n\n```\n// Converts IPv4 to binary representation\n\n\u003e_ netcalc \"192.168.150.1\" -2\n\u003e_ netcalc \"192.168.150.1\" --ip-to-binary\n\n// result ---\u003e [ '11000000', '10101000', '10010110', '1' ]\n```\n\n### Min and max address\n\n```\n// Calculate min (network) and max (broadcast) by IPv4 and CIDR\n\n\u003e_ netcalc \"192.168.150.1\" 24 -r\n\u003e_ netcalc \"192.168.150.1\" 24 --range\n\n// result ---\u003e ['192.168.150.0', '192.168.150.255']\n```\n\n### Range of a network\n\n```\n// Calculates all IPv4s between and including the provided min and max addresses.\n\n\u003e_ netcalc \"192.168.150.1\" \"192.168.150.254\" -i\n\u003e_ netcalc \"192.168.150.1\" \"192.168.150.254\" --inner-range\n\n// result ---\u003e ['192.168.150.0', '192.168.150.1', '192.168.150.2', ..., '192.168.150.254', '192.168.150.255']\n```\n\n### CIDR to netmask\n\n```\n// Converts CIDR to netmask\n\n\u003e_ netcalc 24 -c\n\u003e_ netcalc 24 --cidr-to-netmask\n\n// result---\u003e [255, 255, 255, 0]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherrfugbaum%2Fnetcalc-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherrfugbaum%2Fnetcalc-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherrfugbaum%2Fnetcalc-cli/lists"}