{"id":13672907,"url":"https://github.com/huruji/electron-dev-console","last_synced_at":"2025-04-10T16:12:19.935Z","repository":{"id":35076751,"uuid":"204019145","full_name":"huruji/electron-dev-console","owner":"huruji","description":"一个用于在渲染进程查看主进程输出的 electron 开发调试工具","archived":false,"fork":false,"pushed_at":"2023-03-01T19:36:07.000Z","size":1751,"stargazers_count":11,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T14:01:48.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/huruji.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-23T14:55:54.000Z","updated_at":"2024-04-22T03:35:33.000Z","dependencies_parsed_at":"2024-01-17T04:18:55.307Z","dependency_job_id":null,"html_url":"https://github.com/huruji/electron-dev-console","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.4,"last_synced_commit":"5e2e3771d5f1f476491626d8210e0a8725c5e369"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Felectron-dev-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Felectron-dev-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Felectron-dev-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Felectron-dev-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huruji","download_url":"https://codeload.github.com/huruji/electron-dev-console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054230,"owners_count":21039952,"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-08-02T09:01:56.298Z","updated_at":"2025-04-10T16:12:19.890Z","avatar_url":"https://github.com/huruji.png","language":"TypeScript","readme":"# electron-dev-console\n\n一个用于在渲染进程查看主进程输出的 electron 开发调试工具\n\n![screenshot](./screenshot.jpg)\n\n**why?**\n\n在开发 electron 应用中，主进程可以通过 `--inspect` 来调试主进程，但是有时候打包过后的应用与开发时表现并不一致，这个时候要调试主进程却只能通过 `electron-log` 之类的日志库通过写日志的方式调试，这似乎有点笨拙，因此有了这个仓库。\n\n## how to use\n\n```bash\nnpm i -S electron-dev-console\n```\n\nin renderer process\n\n```js\nimport { renderer } from 'electron-dev-console'\n\nrenderer.init()\n```\n\nin main process\n\n```js\nimport { main } from 'electron-dev-console'\nconst win = new BrowserWindow({\n  // your config\n})\n\nmain.init(win)\n\nmain.success('success message')\nmain.info('info message')\nmain.warn('warn message')\nmain.error('error message')\n```\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Felectron-dev-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuruji%2Felectron-dev-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Felectron-dev-console/lists"}