New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cla55

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cla55

Simply create or extend classes in JavaScript

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 07 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc