$ gnpm install exists-case
Wrap fs.exists for case sensitivity
$ npm install exists-case -g
var exists = require('exists-case');
// try to test Package.json in cwd
exists('Package.json', function(result) {
result.should.be.false;
});
Same as sync way
var exists = require('exists-case');
// try to test Package.json in cwd
exists.sync('Package.json').should.be.false;
Copyright (c) 2015 popomore. Licensed under the MIT license.
Copyright 2013 - present © cnpmjs.org | Home |