1.1.1 • Published 8 years ago

mixxer v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Mixxer

This package allows you to implement the Mixin design pattern. Extend one object from other objects.

Install

npm install mixxer --save

It's easy to use

const mixxer = require('mixxer');;

Extend from one object

mixxer.extend(Programmer, Person)

Extend from several objects

mixxer(Programmer)
 .extendFrom(Person)
 .extendFrom(Employ)
 .extendFrom(SalsaDancer);

You can specify what properties to extend

mixxer.extend(Programmer, Person, 'breathe', 'walk')

mixxer(Programmer)
 .extendFrom(Person, 'breathe', 'walk')
 .extendFrom(Employ)
 .extendFrom(SalsaDancer);
1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago