# @specialblend/callable

> Callable ES6 classes

Latest version **0.1.0** (published 2019-12-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @specialblend/callable
pnpm add @specialblend/callable
yarn add @specialblend/callable
bun add @specialblend/callable
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-12-12 |
| First published | 2019-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | cj@specialblend.net |
| Maintainers | __specialblend__ |
| Keywords | es6, call, callable, class |

## Links

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

## Dependencies (1)

- [ramda](https://npm.io/package/ramda.md) ^0.26.1

## Recent versions

- 0.1.0 (latest) — 2019-12-12
- 0.0.6 — 2019-07-07
- 0.0.5 — 2019-03-07
- 0.0.4 — 2019-03-04
- 0.0.3 — 2019-03-04
- 0.0.2 — 2019-03-04
- 0.0.1 — 2019-03-04
- 0.0.0 — 2019-03-03

## README

# callable

callable ES6 classes

## installation

```
npm i @specialblend/callable
```

## example
```
import Callable from '@specialblend/callable';

export class CheckYoSelfFoo extends Callable {
    constructor(foo, bar) {
        super();
        this.foo = foo;
        this.bar = bar;
    }
    [Symbol.for('call')](name) {
        return `Yo, ${name}! They say it dont ${this.foo}, but ${this.bar}`;
    }
    getFoo() {
        return this.foo;
    }
    getBar() {
        return this.bar;
    }
}

const check = new CheckYoSelfFoo('be like it is', 'it do!');

// => be like it is
console.log(check.getFoo());

// => be like it is
console.log(check.foo);

// => it do!
console.log(check.getBar());

// => it do!
console.log(check.bar);

// => Yo, foo! They say it dont be like it is, but it do!
console.log(check('foo'));
```

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