Showing
1 changed file
with
7 additions
and
6 deletions
| 1 | -(function (exports, require, module, __filename, __dirname) { | 1 | +console.log(__filename); |
| 2 | - var url = 'http://mylogger.io/log'; | 2 | +console.log(__dirname); |
| 3 | 3 | ||
| 4 | - function log(message) { | 4 | +var url = 'http://mylogger.io/log'; |
| 5 | + | ||
| 6 | +function log(message) { | ||
| 5 | // Send an HTTP request | 7 | // Send an HTTP request |
| 6 | console.log(message); | 8 | console.log(message); |
| 7 | - } | 9 | +} |
| 8 | 10 | ||
| 9 | - module.exports = log; | ||
| 10 | -}) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 11 | +module.exports = log; | ... | ... |
-
Please register or login to post a comment