c3

C3 linearization algorithm

npm install c3
1 downloads in the last week
5 downloads in the last month

c3 Build Status

An implementation of the C3 linearization algorithm.

Getting Started

Install c3

npm install c3

Usage

var assert = require('assert')
  , c3 = require('c3')

var c = c3('a')
c.add('a', 'b')
c.add('b', 'c')
assert.deepEqual(c.run(), ['a', 'b', 'c'])

License

This work is licensed under the MIT License (see the LICENSE file).

The implementation is based on this document which was released under the Python 2.3 license.

npm loves you