# delegato

> A mixin that provides a @delegates class method.

Latest version **1.0.0** (published 2014-01-16) · 0 weekly downloads

## Install

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

## 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 | 2014-01-16 |
| First published | 2013-10-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Nathan Sobo |
| Maintainers | nathansobo, kevinsawicki |
| Keywords | delegate, delegates |

## Links

- npm: https://www.npmjs.com/package/delegato
- Repository: http://github.com/atom/delegato
- Homepage: http://atom.github.io/delegato
- Issues: https://github.com/atom/delegato/issues
- npm.io page: https://npm.io/package/delegato

## Dependencies (1)

- [mixto](https://npm.io/package/mixto.md) 1.x

## Recent versions

- 1.0.0 (latest) — 2014-01-16
- 0.4.0 — 2013-12-12
- 0.3.0 — 2013-11-12
- 0.2.0 — 2013-11-08
- 0.1.0 — 2013-10-29

## README

# delegato [![Build Status](https://travis-ci.org/atom/delegato.png?branch=master)](https://travis-ci.org/atom/delegato)

## Delegate Methods

```coffee
Delegato = require 'delegato'

class Ship
  Delegato.includeInto(this)
  
  @delegatesMethods 'dropAnchor', 'raiseAnchor', toProperty: 'winch'
  @delegatesMethod 'leavePort', toMethod: 'getCaptain'
```

## Delegate Properties

```coffee
class MyClass
  Delegato.includeInto(this)
  
  @delegatesProperty 'steamPressure', toProperty: 'engineRoom'
  @delegatesProperties 'heading', 'speed', toMethod: 'getVelocity'
```

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