Project

fuprint

0.0
No commit activity in last 3 years
No release in over 3 years
Rack middleware that prints information about your request to console in development.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

Fuprint request printer middleware

Rack middleware that prints information about your request to console in development. Perfect for Sinatra or Rack apps that don't come with request ouput built in.

Installation

gem install fuprint

or add to Gemfile.

Settings

# Print the whole env hash for each request if true
Fuprint.debug = false

# Fuprint only prints in development mode
@mode = ENV['RACK_ENV'] || 'development'

Usage

# Require fuprint if you're not using Bundler
require 'fuprint'

# Include as middleware
use Fuprint::Request

That's it!

This library is actively maintained by Fugroup Ltd. We are the creators of CrowdfundHQ.

Thanks!

@authors: Vidar