var fs = require("fs"); var url = "/Users/john/WebstormProjects/resources/J/2/07/26/000201_new.jpg"; console.info(fs.existsSync(url))