An indispensable utility for Game of Thrones fans
index.js:
var hodor = require('hodor');
var response = hodor('Hodor, bring my brother here.');
console.log(response);
$ node index.js
Hodor.
var hodor = require('hodor');
Returns "Hodor."
, no matter what arguments you pass in. Just like Hodor.
Call hodor
from the command line:
$ hodor
Hodor.
Stream anything into hodor
:
$ echo "Hodor, will you help Bran down to the hall?" | hodor
Hodor.
$ pwd | hodor
Hodor.
Stream anything out of hodor
:
$ hodor | cat
Hodor.
Become Pipey McPiperson:
$ ls -l | hodor | cat
Hodor.
$ npm install hodor
Or to use the hodor
command anywhere (because it's super useful):
$ npm install -g hodor
MIT