achied / clouseau

Framework/runtime detection library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clouseau

An inspector of code that peeks into your source tree and determines its language, framework, and suggested memory allocation for the application.

Example:

# a small Sinatra application
detected = Clouseau.detect("./hello-sinatra")
  # => Clouseau::Sinatra

detected.language_name
  # => :ruby

detected.framework_name
  # => :sinatra

detected.memory_suggestion
  # => 128


# a Spring application
detected = Clouseau.detect("./hello-spring")
  # => Clouseau::Spring

detected.language_name
  # => :java

detected.framework_name
  # => :spring

detected.memory_suggestion
  # => 512

About

Framework/runtime detection library.

License:BSD 3-Clause "New" or "Revised" License