/usr/lib/nodejs/fs-exists-sync/index.js is in node-fs-exists-sync 0.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | /*!
* 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;
};
|