mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 07:13:46 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
90
node_modules/detect-file/README.md
generated
vendored
Normal file
90
node_modules/detect-file/README.md
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
# detect-file [](https://www.npmjs.com/package/detect-file) [](https://npmjs.org/package/detect-file) [](https://travis-ci.org/doowb/detect-file)
|
||||
|
||||
Detect if a filepath exists and resolves the full filepath.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install --save detect-file
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var detect = require('detect-file');
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### [detect](index.js#L34)
|
||||
|
||||
Resolve the given `filepath` if it exists.
|
||||
|
||||
**Params**
|
||||
|
||||
* `filepath` **{String}**: filepath to detect.
|
||||
* `options` **{Object}**: Additional options.
|
||||
* `options.nocase` **{Boolean}**: Set this to `true` force case-insensitive filename checks. This is useful on case sensitive file systems.
|
||||
* `returns` **{String}**: Returns the resolved filepath if it exists, otherwise returns `null`.
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
var res = detect('package.json');
|
||||
console.log(res);
|
||||
//=> "package.json"
|
||||
|
||||
var res = detect('fake-file.json');
|
||||
console.log(res)
|
||||
//=> null
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
You might also be interested in these projects:
|
||||
|
||||
[fs-exists-sync](https://www.npmjs.com/package/fs-exists-sync): Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences… [more](https://github.com/jonschlinkert/fs-exists-sync) | [homepage](https://github.com/jonschlinkert/fs-exists-sync "Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.")
|
||||
|
||||
## Contributing
|
||||
|
||||
This document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs).
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||
|
||||
Or visit the [verb-readme-generator](https://github.com/verbose/verb-readme-generator) project to submit bug reports or pull requests for the readme layout template.
|
||||
|
||||
## Building docs
|
||||
|
||||
_(This document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
|
||||
|
||||
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install -g verb verb-readme-generator && verb
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Brian Woodward**
|
||||
|
||||
* [github/doowb](https://github.com/doowb)
|
||||
* [twitter/doowb](http://twitter.com/doowb)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016, [Brian Woodward](https://github.com/doowb).
|
||||
Released under the [MIT license](https://github.com/doowb/detect-file/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 06, 2016._
|
||||
Reference in New Issue
Block a user