0.0.14 • Published 9 years ago

also v0.0.14

Weekly downloads
107
License
-
Repository
github
Last release
9 years ago

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)
0.0.14

9 years ago

0.0.13

10 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago