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.10
  • npm
  • Socket score

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

npm install also

Version 0.0.10 (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)

FAQs

Package last updated on 25 Sep 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