{"id":18262896,"url":"https://github.com/midwayjs/detect-running-module","last_synced_at":"2025-04-09T01:24:48.546Z","repository":{"id":45242032,"uuid":"338343134","full_name":"midwayjs/detect-running-module","owner":"midwayjs","description":"get modules from running code","archived":false,"fork":false,"pushed_at":"2021-12-28T16:44:03.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-14T19:36:21.475Z","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/midwayjs.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2021-02-12T14:34:14.000Z","updated_at":"2021-02-13T12:13:33.000Z","dependencies_parsed_at":"2022-09-10T19:10:17.545Z","dependency_job_id":null,"html_url":"https://github.com/midwayjs/detect-running-module","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fdetect-running-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fdetect-running-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fdetect-running-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fdetect-running-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midwayjs","download_url":"https://codeload.github.com/midwayjs/detect-running-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247954524,"owners_count":21024236,"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-11-05T11:09:13.873Z","updated_at":"2025-04-09T01:24:48.527Z","avatar_url":"https://github.com/midwayjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 获取运行时模块\n\n探测运行时在 package.json 依赖中真实使用的模块，并和当前 package.json 做交集，用于获取实际的模块，方便前后端依赖分离。\n\n## API\n\n```js\nconst { getRunningDependencies } = require('detect-running-module');\n\nconst runnineModules = getRunningDependencies();\n\n// output ['xxxx', 'xxxx']","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwayjs%2Fdetect-running-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidwayjs%2Fdetect-running-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwayjs%2Fdetect-running-module/lists"}