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

cat_facts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cat_facts

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Cat Facts

Rack middleware that adds cat facts in headers of HTTP responses.

Response Headers: X-Cat-Facts: The cats of this lib's developer are called Elvis and Mira.

Enhance your web platform by adding high quality cat facts!

Chemistry Cat Approves!

Installation

Add this line to your application's Gemfile:

gem 'cat_facts'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cat_facts

Add it to your Rails middleware stack in config/application.rb (in the config block)

config.middleware.use CatFacts::Middleware

Usage

Just add a catfact=1 parameter to any URL you want to retrieve an additional X-Cat-Fact header in the response, that will contain a random cat fact for your amusement.

FAQs

Package last updated on 26 Jun 2012

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