# also

> decorators

Latest version **0.0.14** (published 2015-05-18) · 0 weekly downloads

## Install

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

## 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.0.14 |
| Published | 2015-05-18 |
| First published | 2013-06-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nomilous |
| Maintainers | nomilous |

## Links

- npm: https://www.npmjs.com/package/also
- Repository: git@github.com:nomilous/also
- Homepage: https://github.com/nomilous/also
- Issues: https://github.com/nomilous/also/issues
- npm.io page: https://npm.io/package/also

## Dependencies (2)

- [when](https://npm.io/package/when.md) ~2.3.0
- [node-uuid](https://npm.io/package/node-uuid.md) ~1.4.1

## Recent versions

- 0.0.14 (latest) — 2015-05-18
- 0.0.13 — 2013-12-02
- 0.0.12 — 2013-09-29
- 0.0.11 — 2013-09-25
- 0.0.10 — 2013-09-25
- 0.0.9 — 2013-09-14
- 0.0.8 — 2013-09-03
- 0.0.7 — 2013-08-25
- 0.0.6 — 2013-08-17
- 0.0.5 — 2013-08-11
- 0.0.4 — 2013-08-04
- 0.0.3 — 2013-06-17
- 0.0.2 — 2013-06-17
- 0.0.1 — 2013-06-13
- 0.0.0 — 2013-06-11

## README

`npm install also`

### Version 0.0.14 (unstable)

also
====

An accumulating set of function decorators. <br />

Function decorators?: [Coffeescript Ristretto](https://leanpub.com/coffeescript-ristretto)


Examples
--------

### synchronous example with fairy tale


```coffee

Dwarves     = 0
SnowWhites  = 0

{inject} = require 'also'

Hi = Ho = inject.sync

    beforeAll:  -> SnowWhites++
    beforeEach: -> Dwarves++

    -> 

        SnowWhites: SnowWhites, Dwarves: Dwarves



Hi Ho, Hi Ho, Hi Ho Hi Ho, Hi Ho()

# => { SnowWhites: 1, Dwarves: 7 }


```


### synchronous example with node modules


```coffee

nodeModules = (names) -> require name for name in names 
        
start = inject.sync nodeModules, (crypto, zlib, net) -> 

    #
    # ...
    # 

start()

```

### asynchronous example 

none. see [spec](https://github.com/nomilous/also/blob/master/spec/inject/async_spec.coffee)

todo
----

* combine with Notice (hub) and run as daemon (script server for worker/drone farm)

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