shrine-medco/shrine-webclient/src/main/html/node_modules/is-dotfile23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/is-dotfile
23de2099ce18release/1.22.2.4
is-dotfile
is-dotfile
README.md
README.md
is-dotfile ![NPM version](http://badge.fury.io/js/is-dotfile)
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
Install
Install with npm
sh $ npm i is-dotfile --save
Usage
js var isDotfile = require('is-dotfile');
false
All of the following return false:
js isDotfile('a/b/c.js'); isDotfile('/.git/foo'); isDotfile('a/b/c/.git/foo'); //=> false
true
All of the following return true:
js isDotfile('a/b/.gitignore'); isDotfile('.gitignore'); isDotfile('/.gitignore'); //=> true
Related projects
- dotfile-regex: Regular expresson for matching dotfiles. | homepage
- has-glob: Returns true if an array has a glob pattern. | homepage
- is-dotdir: Returns true if a path is a dot-directory. | homepage
- is-glob: Returns true if the given string looks like a glob pattern or an extglob pattern.… more | homepage
Running tests
Install dev dependencies:
sh $ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Authors
Jon Schlinkert
+ github/jonschlinkert + twitter/jonschlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
_This file was generated by verb-cli on October 20, 2015._
c4science · Help