# ola-class

> Yet another class-extend

Latest version **1.0.0** (published 2015-03-01) · 0 weekly downloads

## Install

```sh
npm install ola-class
pnpm add ola-class
yarn add ola-class
bun add ola-class
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-01 |
| First published | 2015-03-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | olamedia |
| Maintainers | olamedia |

## Links

- npm: https://www.npmjs.com/package/ola-class
- Repository: https://github.com/olamedia/ola-class
- Issues: https://github.com/olamedia/ola-class/issues
- npm.io page: https://npm.io/package/ola-class

## Recent versions

- 1.0.0 (latest) — 2015-03-01

## README

# node-class
Yet another class-extend

## Basic usage
```
var MyClass = Class.extend({ // will be shown in logs as [Function]
  init: function(){
    // constructor
  }
});

var MyClass2 = MyClass.extend({
  init: function(){
    // Well, any parent method can be called like that, no magic, just vanilla and speed
    MyClass.prototype.init.call(this, ...);
    MyClass.prototype.init.apply(this, [...]);
    // constructor
  }
});
```

## Advanced usage: named custom constructor
```
var MyClass = Class.fextend(function MyClass(){ // will be shown in logs as [Function: MyClass]
  // constructor
}, {});
```

---
_Source: https://npm.io/package/ola-class · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
