{"id":19450363,"url":"https://github.com/ymc-github/sh-lib-nw-fun","last_synced_at":"2026-05-12T20:15:28.466Z","repository":{"id":95798722,"uuid":"271916815","full_name":"YMC-GitHub/sh-lib-nw-fun","owner":"YMC-GitHub","description":"some function for caculating network  for ymc","archived":false,"fork":false,"pushed_at":"2021-07-22T10:00:39.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:23:34.848Z","etag":null,"topics":["fun","nw","sh-lib","ymc"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/YMC-GitHub.png","metadata":{"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}},"created_at":"2020-06-13T01:01:02.000Z","updated_at":"2021-07-22T10:00:42.000Z","dependencies_parsed_at":"2023-04-08T05:02:21.035Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/sh-lib-nw-fun","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/YMC-GitHub/sh-lib-nw-fun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-nw-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-nw-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-nw-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-nw-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/sh-lib-nw-fun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-nw-fun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32955140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["fun","nw","sh-lib","ymc"],"created_at":"2024-11-10T16:37:01.322Z","updated_at":"2026-05-12T20:15:28.451Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sh lib nw-fun\n\n## desc\n\nsome function for caculating network  for ymc\n\n## deps\n\n- [x] sh-lib-str\n- [x] sh-lib-arr\n- [x] sh-lib-txt\n- [ ] sh-lib-time-cost\n- [x] sh-lib-path-resolve\n- [x] sh-lib-num-base-bc\n- [ ] sh-lib-test\n- [ ] sh-lib-fun\n\n## apis\n\n- [x] nw_cidr_to_mask\n- [x] nw_cidr_from_mask\n- [x] nw_cidr_to_host_bits\n- [x] nw_cidr_from_host_bits\n- [x] nw_mask_ini\n- [x] nw_mask_cimi_sum\n- [x] nw_mask_from_cidr\n- [x] nw_mask_to_cidr\n- [x] nw_mask_get\n- [x] nw_mask_add\n- [x] nw_mask_del\n- [x] nw_mask_is\n- [x] nw_mask_type_is\n- [x] nw_ip_get\n- [x] nw_ip_add\n- [x] nw_ip_del\n- [x] nw_ip_is\n- [x] nw_ip_type_is\n- [x] nw_ip_private_is\n- [x] nw_ip_addr_broad_from_net\n- [x] nw_ip_addr_net_from_host\n- [x] nw_ip_addr_hostid\n- [x] nw_ip_format_to_bin\n- [x] nw_ip_addr_net_to_cidr\n- [x] nw_sub_num_to_bits\n- [x] nw_sub_bits_to_num\n- [x] nw_sub_bits_to_mask\n- [x] nw_sub_mask_to_bits\n- [x] nw_sub_bits_to_cidr\n- [x] nw_sub_cidr_to_bits\n- [x] nw_sub_host_bits_to_num\n- [x] nw_sub_host_num_to_bits\n- [x] nw_sub_host_bits_to_cidr\n- [x] nw_sub_host_cidr_to_bits\n- [x] nw_sub_know_from_list\n- [x] nw_sub_know_set\n- [x] nw_sub_know_get\n- [x] nw_sup_know_from_list\n- [x] nw_sup_know_set\n- [x] nw_sup_know_get\n\n```sh\nsrc/dev.api.sh\n```\n\n## feat\n\n- [x] basic operation for `cidr`\n- [x] basic operation for `mask`\n- [x] basic operation for `sub`\n- [x] basic operation for `sup`\n- [x] apis begins with ns `nw/sup/sub/mask/cidr`\n\n\n## how to use for poduction?\n\n```sh\n# get the code\n\n# run the index file\n# ./index.sh\n\n# or import to your sh file\n# source /path/to/the/index file\n\n# simple usage\n\n```\n\n## how to use for developer?\n\n```sh\n# get the code\n\n# run test\n# test file is ./src/test*.sh\n# eg.\n./test/index.sh\n#2 get some fail test\n#./src/test.sh | grep \"it is false\"\n```\n\n## author\n\nyemiancheng \u003cymc.github@gmail.com\u003e\n\n## license\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fsh-lib-nw-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fsh-lib-nw-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fsh-lib-nw-fun/lists"}