{"id":28854209,"url":"https://github.com/commaai/can-message","last_synced_at":"2025-08-15T00:44:48.039Z","repository":{"id":65984954,"uuid":"125777589","full_name":"commaai/can-message","owner":"commaai","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-16T20:42:54.000Z","size":41,"stargazers_count":5,"open_issues_count":1,"forks_count":7,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-07-03T02:42:30.089Z","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/commaai.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":"2018-03-18T23:33:47.000Z","updated_at":"2023-07-27T18:10:04.000Z","dependencies_parsed_at":"2023-02-19T19:15:27.654Z","dependency_job_id":null,"html_url":"https://github.com/commaai/can-message","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/commaai/can-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fcan-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fcan-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fcan-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fcan-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commaai","download_url":"https://codeload.github.com/commaai/can-message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commaai%2Fcan-message/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270506002,"owners_count":24596506,"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-14T02:00:10.309Z","response_time":75,"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-06-19T22:09:07.495Z","updated_at":"2025-08-15T00:44:47.974Z","avatar_url":"https://github.com/commaai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# can-message\nPack and unpack CAN bus data.\n\nThis library is designed for use with the [Panda OBD-II Dongle](https://shop.comma.ai/products/panda-obd-ii-dongle) as part of [pandajs](https://github.com/commaai/pandajs).\n\n## Installation\n`npm i --save can-message`\n\nor\n\n`yarn add can-message`\n\n## Usage\n```js\nimport { canToObject, objectToCan } from 'can-message';\n\n// parse raw buffer into can data\nvar messageArray = canToObject(buffer);\n// messageArray is an array of { address, busTime, data, bus }\n\n// create a buffer containing a can message\nvar buffer = objectToCan(myCanMessage);\n```\n\n```js\nconst CanMessage = require('can-message');\n\n// parse raw buffer into can data\nvar messageArray = CanMessage.canToObject(buffer);\n// messageArray is an array of { address, busTime, data, bus }\n\n// create a buffer containing a can message\nvar buffer = CanMessage.objectToCan(myCanMessage);\n```\n\n## Contributing\n`yarn run test`\n\n# License\nMIT @ comma.ai\n\nRead more about how to get started hacking your car with Panda [here](https://medium.com/@comma_ai/a-panda-and-a-cabana-how-to-get-started-car-hacking-with-comma-ai-b5e46fae8646).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommaai%2Fcan-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommaai%2Fcan-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommaai%2Fcan-message/lists"}