# @antigravities/abstract

> Abstract classes in JavaScript

Latest version **1.0.0** (published 2018-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @antigravities/abstract
pnpm add @antigravities/abstract
yarn add @antigravities/abstract
bun add @antigravities/abstract
```

## 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 | 2018-08-17 |
| First published | 2018-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alexandra Frock |
| Maintainers | antigravities |

## Links

- npm: https://www.npmjs.com/package/@antigravities/abstract
- Repository: https://github.com/antigravities/abstract
- Homepage: https://github.com/antigravities/abstract#readme
- Issues: https://github.com/antigravities/abstract/issues
- npm.io page: https://npm.io/package/@antigravities/abstract

## Recent versions

- 1.0.0 (latest) — 2018-08-17

## README

# abstract
Abstract classes in JavaScript, because why be a normal person?

Stolen from another project of mine and really only intended to be (re-)used by me, but I guess you can use it if you really want.

# Install
```
npm install --save @antigravities/abstract
```

# Use
```
const Abstract = require("@antigravities/abstract");

class Animal extends Abstract {
  constructor(){
    super(['makeNoise']);
  }
}

class Dog extends Animal {
  makeNoise(){
    console.log("woof");
  }
}

class Cat extends Animal {
  makeNoise(){
    console.log("meow");
  }
}

class Pig extends Animal { } // Error: Pig must implement makeNoise
```

# License
[MIT](LICENSE)

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