Last active
August 29, 2015 14:08
-
-
Save darkoverlordofdata/5c98360fb786ae0a6a08 to your computer and use it in GitHub Desktop.
Spiced Rum-Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
#+--------------------------------------------------------------------+ | |
#| | |
#| 'Tis file be part 'o Arg | |
#| | |
#| Arg! be free software; ye can copy, modify, 'n distribute | |
#| it under th' terms 'o th' MIT License | |
#| | |
#+--------------------------------------------------------------------+ | |
http = require('http') | |
url = "http://postlikeapirate.com/AJAXtranslate.php?typing=" | |
http.get url+escape(process.argv.slice(2).join(' ')), (res) -> | |
res.on 'data', (chunk) -> | |
console.log String(chunk) | |
.on 'error', (err) -> | |
console.log err |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "arg", | |
"version": "0.0.1", | |
"description": "Talk like a pirate", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"bin": { | |
"arg": "./bin/arg" | |
}, | |
"author": "darkoverlordofdata", | |
"license": "MIT" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment