{"id":20032305,"url":"https://github.com/weakish/nbcount","last_synced_at":"2026-03-05T12:31:56.276Z","repository":{"id":146349740,"uuid":"70203372","full_name":"weakish/nbcount","owner":"weakish","description":"nbcount is a naive, bad counter for source code.","archived":false,"fork":false,"pushed_at":"2016-10-07T00:23:12.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T05:28:33.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weakish.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":"2016-10-07T00:23:03.000Z","updated_at":"2016-10-07T00:23:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"5706b2c9-18d9-4c71-8dd3-b7c6581d2a1f","html_url":"https://github.com/weakish/nbcount","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weakish/nbcount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fnbcount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fnbcount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fnbcount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fnbcount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weakish","download_url":"https://codeload.github.com/weakish/nbcount/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fnbcount/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30124442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T11:11:57.947Z","status":"ssl_error","status_checked_at":"2026-03-05T11:11:29.001Z","response_time":93,"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":[],"created_at":"2024-11-13T09:36:38.353Z","updated_at":"2026-03-05T12:31:56.246Z","avatar_url":"https://github.com/weakish.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"nbcount is a naive, bad counter for source code.\n\nCurrently only supports code with single line comment starting with one of:\n\n- `#`\n- `\"`\n- `%`\n- `--`\n- `//`\n- `REM`\n\nNo support for multi-line comments.\nNo distinguish comment marks between languages,\nfor example, `REM = 2` in C will be considered as comment line (not count).\n\n\nInstall\n--------\n\n### Dependencies\n\n- sh\n- grep\n- wc\n\n### With `make`\n\n```sh\n; git clone https://github.com/weakish/nbcount\n; cd nbcount\n; make\n```\n\nFiles will be installed to `/usr/local/bin`.\nIf you want to install other place, edit `config.mk` before running `make`.\n\nMakefile is compatible with both GNU make and BSD make.\n\n### With basher\n\n```sh\n; basher install weakish/nbcount\n```\n\n### Manually\n\nCopy `bin/nbcount` to `$PATH`.\n\nUsage\n------\n\n    cat source.code | nbcount\n\nLicense\n--------\n\n0BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Fnbcount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweakish%2Fnbcount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Fnbcount/lists"}