Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tuurdutoit/circular-resolver

Resolves your circular dependencies
https://github.com/tuurdutoit/circular-resolver

Last synced: 10 days ago
JSON representation

Resolves your circular dependencies

Awesome Lists containing this project

README

        

circular-resolver
=================

Resolves modules with circular dependencies.

## Installation
```
npm install --save circular-resolver
```

## Usage
This module exports just one class, `Resolver`. Use a regular `require()` to get it and create a new instance:

```js
var Resolver = require("circular-resolver");
var modules = new Resolver();

modules.dep(a, "b");
modules.obj("a", a);
// etc.
```

## API
> Coming soon, maybe?

In the meantime, just look at `example.js` or just the source code; it's less than 50 lines of code...

## License
MIT