THIS MODULE TURNS ON AND OFF CAPS LOCK IN YOUR JAVASCRIPT PROGRAM.
require('caps-lock').ENGAGE();
console.log('beep boop');
BEEP BOOP
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
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
WITH NPM DO:
npm install caps-lock
MIT