C3 linearization algorithm

npm install c3
3 downloads in the last week
4 downloads in the last month

c3 Build Status

An implementation of the C3 linearization algorithm.

Getting Started

Install c3

npm install c3


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


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