circular-require

Detect circular/cyclical require statements in a codebase.

3 years after

circular-require

Detect circular require statements in a codebase.

Install

$ npm install -g circular-require

Use

circular-require provides a single command that takes an entry point as its one argument. If it is run in a directory with a package.json with browserify.transform field, it'll use those transforms while resolving dependencies.

$ ~/src/app-styles〉circular-require src/index.js
found 1 cycles
[ '/Users/tmcw/src/app-styles/src/components/forms/_index.js',
  '/Users/tmcw/src/app-styles/src/util/_compute_form.js',
  '/Users/tmcw/src/app-styles/src/components/forms/ramps/generic_ramp.js',
  '/Users/tmcw/src/app-styles/src/components/forms/generic_fn.js' ]

Related Repositories

Marionette-Require-Boilerplate

Marionette-Require-Boilerplate

Marionette-Require-Boilerplate ...

circular-json

circular-json

JSON does not handle circular references. Now it does ...

circular-json-es6

circular-json-es6

circular JSON.stringify and JSON.parse, for environments with native ES6 Map ...

commonjs-require

commonjs-require

browser-side CommonJS require() function. ...

babel-plugin-cycle-circular

babel-plugin-cycle-circular

Babel plugin allowing to have circular dependencies in cycle.js functions. ...