{"id":15491308,"url":"https://github.com/theodesp/cache-line","last_synced_at":"2025-04-10T19:11:37.863Z","repository":{"id":97066363,"uuid":"93679601","full_name":"theodesp/cache-line","owner":"theodesp","description":"Returns your current CPU cache line size in bytes","archived":false,"fork":false,"pushed_at":"2019-05-18T16:21:32.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T10:00:27.839Z","etag":null,"topics":["cache","cpu-cache","cpuinfo","node","node-gyp"],"latest_commit_sha":null,"homepage":"","language":"C++","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/theodesp.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":"2017-06-07T21:04:42.000Z","updated_at":"2022-07-11T16:36:33.000Z","dependencies_parsed_at":"2023-04-22T19:02:17.072Z","dependency_job_id":null,"html_url":"https://github.com/theodesp/cache-line","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"4cfc4c35e6d5bc88d4c630c28d2fe4347085bb96"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodesp%2Fcache-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodesp%2Fcache-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodesp%2Fcache-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodesp%2Fcache-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theodesp","download_url":"https://codeload.github.com/theodesp/cache-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279733,"owners_count":21077408,"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":["cache","cpu-cache","cpuinfo","node","node-gyp"],"created_at":"2024-10-02T07:44:47.265Z","updated_at":"2025-04-10T19:11:37.856Z","avatar_url":"https://github.com/theodesp.png","language":"C++","readme":"# cache-line\n\u003e Returns the current CPU cache line size in bytes\n\nUseful when you need to work with systems programming (locks, threads, optimization etc.).\n\n## Usage\n\nPrint the cache line size.\n\n```js\nconst cacheLineSize = require('cache-line');\n\nconsole.log(\"Cache Line is\", cacheLineSize()); // 64 on my machine or 0 on failure\n```\n\n## Platforms\nWorks on Linux and MacOS but not for Windows(feel free to PR).\n\n## License\n\nMIT © [Theo Despoudis](https://theodespoudis.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodesp%2Fcache-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheodesp%2Fcache-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodesp%2Fcache-line/lists"}