Code Monkey home page Code Monkey logo

circular-require's Introduction

circular-require

UNMAINTAINED: This module is no longer maintained, and installing it will trigger a warning from npm. ES6 modules have no constraints around circular imports, and are the recommended style of JavaScript in the future. This module also has limitations on the ES6 features it can support, due to its dependencies being vintage. If you'd like to adopt it, please do! File an issue and I'll happily transfer ownership to you.

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' ]

circular-require's People

Contributors

tmcw avatar vbraun avatar

Stargazers

 avatar  avatar Mitya Kamaev avatar Harri Siirak avatar Alon Diamant avatar Eric Bower avatar Angus H. avatar Atish avatar  avatar

Watchers

 avatar James Cloos avatar

circular-require's Issues

Fails to support object destruction

module.exports = new GraphQLObjectType({
	name: 'mutation',
	description: 'mutation service',
	fields: {
		...user, <--- Error
		...checklist
	}
})
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: Parsing file c:\hub\aizkraukle-server\src\schema\mutation\index.js: Unexpected token (12:2)

node 8.6.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.