An open API service indexing awesome lists of open source software.

https://github.com/midwayjs/detect-running-module

get modules from running code
https://github.com/midwayjs/detect-running-module

Last synced: over 1 year ago
JSON representation

get modules from running code

Awesome Lists containing this project

README

          

# 获取运行时模块

探测运行时在 package.json 依赖中真实使用的模块,并和当前 package.json 做交集,用于获取实际的模块,方便前后端依赖分离。

## API

```js
const { getRunningDependencies } = require('detect-running-module');

const runnineModules = getRunningDependencies();

// output ['xxxx', 'xxxx']