|
|
4 anni fa | |
|---|---|---|
| .. | ||
| LICENSE | 4 anni fa | |
| README.md | 4 anni fa | |
| index.js | 4 anni fa | |
| package.json | 4 anni fa | |
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
Install with npm
$ npm i is-dotfile --save
var isDotfile = require('is-dotfile');
false
All of the following return false:
isDotfile('a/b/c.js');
isDotfile('/.git/foo');
isDotfile('a/b/c/.git/foo');
//=> false
true
All of the following return true:
isDotfile('a/b/.gitignore');
isDotfile('.gitignore');
isDotfile('/.gitignore');
//=> true
true if an array has a glob pattern. | homepagetrue if the given string looks like a glob pattern or an extglob pattern.… more | homepageInstall dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on October 20, 2015.