mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-19 00:53:48 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
29
node_modules/dotgitignore/README.md
generated
vendored
Normal file
29
node_modules/dotgitignore/README.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# dotgitignore
|
||||
|
||||
[](https://travis-ci.org/bcoe/dotgitignore)
|
||||
|
||||
find the closest .gitignore file, parse it, and apply ignore rules.
|
||||
|
||||
## Usage
|
||||
|
||||
_Given the following `.gitignore`:_
|
||||
|
||||
```
|
||||
.DS_Store
|
||||
node_modules
|
||||
coverage
|
||||
.nyc_output
|
||||
```
|
||||
|
||||
```js
|
||||
const dotgit = require('dotgitignore')()
|
||||
dotgit.ignore('.DS_Store') // returns 'true'.
|
||||
dotgit.ignore('README.md') // returns 'false'.
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
* `require('dotgitignore')([opts])`: return instance of `dotgitignore`, optionally
|
||||
configured with `opts`:
|
||||
* `opts.cwd`: current working directory (defaults to process.cwd()).
|
||||
* `dotgit.ignore(name)`: returns `true` if pattern is ignored, `false` otherwise.
|
||||
Reference in New Issue
Block a user