Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/popomore/exists-case

Wrap fs.exists for case sensitivity
https://github.com/popomore/exists-case

Last synced: 25 days ago
JSON representation

Wrap fs.exists for case sensitivity

Awesome Lists containing this project

README

        

# exists-case

Wrap fs.exists for case sensitivity

---

[![NPM version](https://img.shields.io/npm/v/exists-case.svg?style=flat)](https://npmjs.org/package/exists-case)
[![Build Status](https://img.shields.io/travis/popomore/exists-case.svg?style=flat)](https://travis-ci.org/popomore/exists-case)
[![Build Status](https://img.shields.io/coveralls/popomore/exists-case.svg?style=flat)](https://coveralls.io/r/popomore/exists-case)
[![NPM downloads](http://img.shields.io/npm/dm/exists-case.svg?style=flat)](https://npmjs.org/package/exists-case)

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

See [benchmark](https://github.com/popomore/exists-case/tree/master/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.