# hactor

> Hactor = Hapi Actor. Inheritance library

Latest version **1.0.2** (published 2016-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install hactor
pnpm add hactor
yarn add hactor
bun add hactor
```

## 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.2 |
| Published | 2016-04-07 |
| First published | 2015-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mark Bevels |
| Maintainers | indieforger, innocentio |
| Keywords | javascript, inheritance, hapi, extend |

## Links

- npm: https://www.npmjs.com/package/hactor
- Repository: https://github.com/innocentio/hactor
- Issues: https://github.com/innocentio/hactor/issues
- npm.io page: https://npm.io/package/hactor

## Recent versions

- 1.0.2 (latest) — 2016-04-07
- 1.0.1 — 2015-02-17
- 1.0.0 — 2015-02-15

## README

# hactor

[![Build Status](https://travis-ci.org/indieforger/hactor.svg?branch=master)


## Usage

```
Hactor = require('hactor');

Class = Hactor.extend({
	constructor: function () {
		// whatever you want in constructor		
	},
	foo: function () {
		return 'bar';
	}
}, {
	xyz: funciton () {
		return 123;
	}
});


var object = new Class();
console.log(Class.foo()); // -> 'bar'
console.log(object.xyz()); // -> 123
```

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