Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Because every Node.js server needs to have the Fibonacci sequence so it can be nice and cancerous.
JavaScript
Branch: master

Merge pull request #2 from jtwebman/master

This change should allow it to scale better though it will calculate much slower.
latest commit 3567d21e8b
@NuckChorris authored
Failed to load latest commit information.
.gitignore
README.markdown Herpderp I screwed up, fixed a syntax error
index.js
package.json

README.markdown

What The Fuck?

Well, the idea is that Node needs to make better use of the CPU power on a computer, since it rarely ever hits 50% CPU.

To make up for this woefully inefficient design, I have built this wonderfully helpful middleware that generates the fibonacci sequence recursively, thus using some of your spare CPU power.

Why?

Because without a fibonacci generator, Node.js is complete noncancerous shit.

Wait, what?

IDKLOL ASK TED DZIUBA.

Okay, how do I use it?

First, install it.

npm install express-fibonacci

Then, require it and use it.

var express = require('express');
var app = express.createServer();
var fibonacci = require('express-fibonacci');

app.use(fibonacci(20)); // Go for 20 iterations

app.get('/', function (req, res) {
    res.send(req.fibonacci);
});

app.listen(3030);
Something went wrong with that request. Please try again.