Created
November 27, 2013 08:56
-
-
Save brettcave/7672685 to your computer and use it in GitHub Desktop.
node.js sample
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
var fs = require('fs') | |
fs.exists("/path/to/some/file", function(exists) { | |
var foo = "bar" | |
if (exists) | |
foo = "foobar"; | |
module.exports = foo; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment