Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
circular-dependency-analyzer
Advanced tools
Readme
Detect modules with circular dependencies in files.
npm install circular-dependency-analyzer
// or
yarn install circular-dependency-analyzer
Parameters | Type | Description |
---|---|---|
dir | string | dir is a directory based on process.cwd() |
alias | object | alias object's value is a directory or file based on process.cwd() too |
Result | Type | Description |
---|---|---|
stack | object | It's an object with key(filepath ). value(required filepath array), filepath is based on process.cwd() , besides, its /index and extname will be removed |
Parameters | Type | Description |
---|---|---|
dir | string | dir is a directory based on process.cwd() |
alias | object | alias object's value is a directory or file based on process.cwd() too |
Result | Type | Description |
---|---|---|
circularDependencies | 2 d array | It's a two-dimensional array, each item array represents a circular dependency |
import { getFileRequiresStack, getCircularReferences } from 'circular-dependency-analyzer'
getFileRequiresStack('src')
getCircularReferences('src')
getFileRequiresStack('src', {
fs: 'src/fs',
})
getCircularReferences('src', {
fs: 'src/fs',
})
More examples you can find in tests
dir.
FAQs
Detect modules with circular dependencies in files
The npm package circular-dependency-analyzer receives a total of 2 weekly downloads. As such, circular-dependency-analyzer popularity was classified as not popular.
We found that circular-dependency-analyzer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.