{"id":17668482,"url":"https://github.com/evanshortiss/obd-parser-development-connection","last_synced_at":"2025-03-30T13:22:32.571Z","repository":{"id":65467297,"uuid":"75793225","full_name":"evanshortiss/obd-parser-development-connection","owner":"evanshortiss","description":"A fake connection that can be used to simulate polling for PIDs during development","archived":false,"fork":false,"pushed_at":"2017-03-16T02:39:55.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T06:34:09.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/evanshortiss.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":"2016-12-07T02:56:55.000Z","updated_at":"2021-03-12T09:33:21.000Z","dependencies_parsed_at":"2023-01-25T09:00:11.254Z","dependency_job_id":null,"html_url":"https://github.com/evanshortiss/obd-parser-development-connection","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fobd-parser-development-connection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fobd-parser-development-connection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fobd-parser-development-connection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanshortiss%2Fobd-parser-development-connection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanshortiss","download_url":"https://codeload.github.com/evanshortiss/obd-parser-development-connection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246321157,"owners_count":20758586,"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":[],"created_at":"2024-10-23T23:22:42.720Z","updated_at":"2025-03-30T13:22:32.544Z","avatar_url":"https://github.com/evanshortiss.png","language":"TypeScript","readme":"# obd-parser-development-connection\nA connetion for the *obd-parser* module that is useful when developing. It will\nreturn random data for any PID being requested.\n\n## Usage\nSee the _/examples_ folder in *obd-parser* for a full example:\n\n```ts\n// In your code this should be changed to 'obd-parser'\nimport * as OBD from 'obd-parser';\n\n// Use a serial connection to connect\nvar getConnector = require('obd-parser-fake-connection');\n\n// Returns a function that will allow us to connect to the serial port\nvar connect:Function = getConnector({});\n\n// Need to initialise the OBD module with a \"connector\" before starting\nOBD.init(connect)\n  .then(function () {\n    // Do your polling stuff here!\n  })\n```\n\nThe above code will work exactly the same as JavaScript, just remove the type\nannotation and change the _import_ line to _var OBD = require('obd-parser')_. \n\n## CHANGELOG\n\n* 0.2.1 - Add missing dependency\n\n* 0.2.0 - Add random delay for responses similar to a real car\n\n* 0.1.3 - Remove comment that is no longer valid\n\n* 0.1.2 - Fix to include dist JS files\n\n* 0.1.1 - Fix to include dist JS files\n\n* 0.1.0 - Initial release","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Fobd-parser-development-connection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanshortiss%2Fobd-parser-development-connection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanshortiss%2Fobd-parser-development-connection/lists"}