# @c8/check-interface

> Super tiny lib on top of check-types npm package to check ES 6 class interfaces

Latest version **0.1.2** (published 2016-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @c8/check-interface
pnpm add @c8/check-interface
yarn add @c8/check-interface
bun add @c8/check-interface
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-05-06 |
| First published | 2016-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pavel Pichrt |
| Maintainers | andrezzoid, c8deploy, njo_c8, pavelpichrt, quophyie, teckays |

## Links

- npm: https://www.npmjs.com/package/@c8/check-interface
- Repository: https://github.com/c8management/check-interface
- Homepage: https://github.com/c8management/check-interface#readme
- Issues: https://github.com/c8management/check-interface/issues
- npm.io page: https://npm.io/package/@c8/check-interface

## Dependencies (1)

- [check-types](https://npm.io/package/check-types.md) ^6.0.0

## Recent versions

- 0.1.2 (latest) — 2016-05-06
- 0.1.1 — 2016-05-05
- 0.1.0 — 2016-05-04

## README

# @c8/check-interface
Super tiny lib on top of check-types npm package to check object interfaces

## Installation
`npm i @c8/check-interface`

## Usage
```javascript
const checkInterface = require('@c8/check-interface')

class MyInterface {

  constructor () {
    checkInterface(this, ['foo', 'bar'])
  }
}

class Foo extends MyInterface {
  constructor () {
    super()
  }

  foo () {
    return
  }
}

let fooClass = new Foo() // will throw an Error as bar isn't implemented
```

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