Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CAPS LOCK FOR YOUR NODE PROGRAM

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 EXAMPLE
Octocat-spinner-32 INDEX.CS
Octocat-spinner-32 INDEX.JS
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 package.json
README.markdown

CAPS-LOCK

THIS MODULE TURNS ON AND OFF CAPS LOCK IN YOUR JAVASCRIPT PROGRAM.

EXAMPLES

LOG

require('caps-lock').ENGAGE();

console.log('beep boop');

BEEP BOOP

ON/OFF

YOU CAN TURN CAPS LOCK OFF TOO BUT YOU SHOULD ONLY DO THAT SO YOU CAN TURN IT ON.

var CAPSLOCK = require('caps-lock');
CAPSLOCK.ENGAGE();

console.log('you had better believe that caps lock is fucking engaged');

CAPSLOCK.DISENGAGE();

console.log('what is this lowercase noise');

YOU HAD BETTER BELIEVE THAT CAPS LOCK IS FUCKING ENGAGED
what is this lowercase noise

HTTP SERVER

require('caps-lock').ENGAGE();

var http = require('http');
var server = http.createServer(function (req, res) {
    res.end('beep boop: ' + req.url + '\n');
});
server.listen(8001);

$ curl localhost:8001/abcdef
BEEP BOOP: /ABCDEF

INSTALL

WITH NPM DO:

npm install caps-lock

LICENSE

MIT

Something went wrong with that request. Please try again.