Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

also

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

also

decorators

  • 0.0.6
  • npm
  • Socket score

Version published
Weekly downloads
171
decreased by-1.72%
Maintainers
1
Weekly downloads
 
Created
Source

Version 0.0.6 (unstable)

npm install also

also

An accumulating set of function decorators.

Function decorators?: Coffeescript Ristretto

Examples

synchronous example with ducks


{inject} = require 'also'

ducklings = 0
ducks   = 0
quark = inject.sync 

    beforeAll:  -> ducks++
    beforeEach: -> ducklings++

    -> 

        ducks: ducks
        ducklings: ducklings
        


console.log quark quark quark quark quark quark quark()

# => { ducks: 1, ducklings: 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)

FAQs

Package last updated on 17 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc