{"id":26351974,"url":"https://github.com/denq/count-bits","last_synced_at":"2025-03-16T10:36:06.459Z","repository":{"id":78233610,"uuid":"89055534","full_name":"DenQ/count-bits","owner":"DenQ","description":"Helper for counting bits in numbers","archived":false,"fork":false,"pushed_at":"2017-04-22T09:52:04.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T21:37:46.140Z","etag":null,"topics":["algorithm","algorithms","binary","bits","count-bits","counter","number"],"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/DenQ.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}},"created_at":"2017-04-22T08:29:17.000Z","updated_at":"2017-04-22T09:54:20.000Z","dependencies_parsed_at":"2023-11-11T00:12:13.534Z","dependency_job_id":null,"html_url":"https://github.com/DenQ/count-bits","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"7fe3d30a49c01ab72a918d2828c4894ec5639610"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2Fcount-bits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2Fcount-bits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2Fcount-bits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2Fcount-bits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DenQ","download_url":"https://codeload.github.com/DenQ/count-bits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858929,"owners_count":20359259,"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","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":["algorithm","algorithms","binary","bits","count-bits","counter","number"],"created_at":"2025-03-16T10:36:05.932Z","updated_at":"2025-03-16T10:36:06.450Z","avatar_url":"https://github.com/DenQ.png","language":"JavaScript","readme":"# count-bits\nIt is helper for counting bits in numbers\n\n## Install\n    npm install count-bits --save\n\n## Usage\n    var countBits = require('count-bits');\n    countBits(15) === 4; // true, 15 === 1111\n    countBits(16) === 1; // true, 15 === 1000\n\n## Specialty\nThis package works much faster than analogs.\nBecause it does not look for a substring in a string and does not use regular expressions.\n\n## Testing\n    npm test\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenq%2Fcount-bits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenq%2Fcount-bits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenq%2Fcount-bits/lists"}