🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

detect-running-module

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-running-module

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

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

获取运行时模块

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

API

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

const runnineModules = getRunningDependencies();

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

FAQs

Package last updated on 13 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts