Skip to content
decorators
CoffeeScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
src
.gitignore
Cakefile
README.md
package.json

README.md

npm install also

Version 0.0.14 (unstable)

also

An accumulating set of function decorators.

Function decorators?: Coffeescript Ristretto

Examples

synchronous example with fairy tale

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

nodeModules = (names) -> require name for name in names 

start = inject.sync nodeModules, (crypto, zlib, net) -> 

    #
    # ...
    # 

start()

asynchronous example

none. see spec

todo

  • combine with Notice (hub) and run as daemon (script server for worker/drone farm)
Something went wrong with that request. Please try again.