Skip to content

popomore/exists-case

Repository files navigation

exists-case

Wrap fs.exists for case sensitivity


NPM version Build Status Build Status NPM downloads

Caution: this repo is slower than fs.exists, do not use it in production!

See benchmark

Install

$ npm install exists-case -g

Usage

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;

LISENCE

Copyright (c) 2015 popomore. Licensed under the MIT license.

About

Wrap fs.exists for case sensitivity

Resources

Stars

Watchers

Forks

Packages

No packages published