Showing
1 changed file
with
9 additions
and
8 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 | - // Send an HTTP request | ||
| 6 | - console.log(message); | ||
| 7 | - } | ||
| 8 | 5 | ||
| 9 | - module.exports = log; | ||
| 10 | -}) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 6 | +function log(message) { | ||
| 7 | + // Send an HTTP request | ||
| 8 | + console.log(message); | ||
| 9 | +} | ||
| 10 | + | ||
| 11 | +module.exports = log; | ... | ... |
-
Please register or login to post a comment