1.1.1 • Published 8 years ago

nan-mixin v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
8 years ago

Mixin library

Library to ease the use of mixins in JS. You can see how the library works checking the tests we added.

Methods provided

mixOf(target, mixin)

Merges the attributes of mixin to the prototype of target.

ParamTypeDescription
targetfunctionConstructor of the class that will be merged with the mixins
mixinObject | ArrayObject (or array of objects) that contains the attributes and methods to be merged with target.

create(name, mixinProperties) ⇒ Object

Creates a Mixin object with the name and methods passed as parameters.

ParamTypeDescription
nameStringName of the Mixin.
mixinPropertiesObjectProperties to be added to the Mixin
1.1.1

8 years ago