olvlvl-mixin

0.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i olvlvl-mixin

Weekly Downloads

1

Version

0.0.2

License

BSD-3-Clause

Last publish

Collaborators

  • olvlvl