Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/popomore/exists-case
- Owner: popomore
- Created: 2015-01-29T15:49:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T20:30:24.000Z (about 5 years ago)
- Last Synced: 2024-11-21T19:08:46.754Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
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.