cla55

0.1.4 • Public • Published

CLA55

Simply extend classes in JavaScript

Usage

Compatible with CommonJS and AMD.

var Cla55 = require('cla55');
 
Cla55.extend(protoProps, staticProps, _super);
 
Cla55.create(Parent, protoProps, staticProps, _super);

API

Cla55()

Cla55.extend(protoProps, [staticProps], [_super])

Shortcut to create a new class and inherit from Cla55.

Arguments:
  • protoProps [Object] A hash of prototype methods/properties to extend (including constructor method)
  • staticProps [Object, optional] A hash of static methods to extend
  • _super [Boolean, optional] Hook methods with ._super() and ._superApply() methods
Returns:
  • [Function] Sub class inherited from Cla55

Cla55.create(Parent, protoProps, [staticProps], [_super])

Class create helper to create a new class and inherit from Parent.

Arguments:
  • Parent [Function] A function to inherit
  • protoProps [Object] A hash of prototype methods/properties to extend (including constructor method)
  • staticProps [Object, optional] A hash of static methods to extend
  • _super [Boolean, optional] Hook methods with ._super() and ._superApply() methods
Returns:
  • [Function] Sub class inherited from Parent

Cla55.Cla55

Direct expose of the base class Cla55.

Returns:
  • [Function] Base class Cla55

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.4
    56
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.4
    56
  • 0.1.3
    0

Package Sidebar

Install

npm i cla55

Weekly Downloads

56

Version

0.1.4

License

MIT

Last publish

Collaborators

  • evanvosberg