0.0.2 • Published 8 years ago

olvlvl-mixin v0.0.2

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
8 years ago

mixin

npm

I simple mixin helper to work with ECMAScript 6 classes.

Usage

"use strict";

const mixin = require('olvlvl-mixin')

class Plant {}
class Robot {}
class Killer {}

class KillerRobot extends mixin(Robot, Killer) {}
class KillerPlant extends mixin(Plant, Killer) {}
class KillerRobotPlant extends mixin(Plan, Robot, Killer) {} 

Requirement

ECMAScript 6.

Installation

The recommended way to install the package in through npm:

$ npm install olvlvl-mixin --save

Cloning the repository

The package is available on GitHub, its repository can be cloned with the following command line:

$ git clone https://github.com/olvlvl/mixin.git

Testing

The test suite is ran with the make test command.

License

olvlvl-mixin is licensed under the New BSD License - See the LICENSE file for details.