diff --git a/index.js b/index.js index 633e40c..949f139 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,7 @@ var fs = require('fs'); var path = require('path'); +var exists = require('fs-exists-sync'); var extend = require('extend-shallow'); var configPath = require('git-config-path'); var ini = require('ini'); @@ -133,14 +134,6 @@ parse.keys = function parseKeys(config) { return res; }; -function exists(fp) { - try { - fs.statSync(fp); - return true; - } catch (err) {} - return false; -} - /** * Expose `parse` */ diff --git a/package.json b/package.json index 285d958..6d841a8 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ }, "dependencies": { "extend-shallow": "^2.0.1", + "fs-exists-sync": "^0.1.0", "git-config-path": "^1.0.0", "ini": "^1.3.4" },