Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
node.js sample
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
You can’t perform that action at this time.