Packages
A web application in pursuit of meaning in life.
Current section
Files
Jump to
Current section
Files
assets/node_modules/fs-exists-sync/index.js
/*!
* fs-exists-sync (https://github.com/jonschlinkert/fs-exists-sync)
*
* Copyright (c) 2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
var fs = require('fs');
module.exports = function(filepath) {
try {
(fs.accessSync || fs.statSync)(filepath);
return true;
} catch (err) {}
return false;
};