# coffeescript-module

> A base class for your Coffeescript projects

Latest version **0.2.1** (published 2014-05-10) · 0 weekly downloads

## Install

```sh
npm install coffeescript-module
pnpm add coffeescript-module
yarn add coffeescript-module
bun add coffeescript-module
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-05-10 |
| First published | 2013-03-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Ryan LeFevre |
| Maintainers | meltingice |

## Links

- npm: https://www.npmjs.com/package/coffeescript-module
- Repository: https://github.com/meltingice/coffeescript-module
- Homepage: http://meltingice.net/2013/03/06/a-coffeescript-base-class/
- Issues: https://github.com/meltingice/coffeescript-module/issues
- npm.io page: https://npm.io/package/coffeescript-module

## Recent versions

- 0.2.1 (latest) — 2014-05-10
- 0.2.0 — 2014-05-10
- 0.1.2 — 2014-05-10
- 0.1.0 — 2014-05-10
- 0.0.2 — 2013-03-09
- 0.0.1 — 2013-03-07

## README

# coffeescript-module

A base little class for your Coffeescript projects.

```
npm install coffeescript-module
```

## Examples

``` coffeescript
{Module} = require 'coffeescript-module'

class Foo extends Module
  log: -> console.log 'hi!'

class Bar extends Module
  @delegate 'log', Foo
  @aliasFunction 'b', 'a'
  @aliasProperty 'd', 'c'

  c: 'test'
  a: -> console.log 'a'

class Baz extends Module
  @includes Bar

bar = new Bar()
bar.log() # calls Foo::log()
bar.b()   # calls Bar::a()
bar.d     # gets Bar::c

baz = new Baz()
baz.b()   # calls Bar::a()
```

## Contributing

If you have a useful addition or a bug fix, send a pull request!

## TODO

* Write tests

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