Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-dotfile

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-dotfile - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

33

package.json
{
"name": "is-dotfile",
"description": "Return true if a file path is (or has) a dotfile.",
"version": "1.0.1",
"description": "Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.",
"version": "1.0.2",
"homepage": "https://github.com/jonschlinkert/is-dotfile",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"repository": {
"type": "git",
"url": "git://github.com/jonschlinkert/is-dotfile.git"
},
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "jonschlinkert/is-dotfile",
"bugs": {

@@ -35,11 +29,26 @@ "url": "https://github.com/jonschlinkert/is-dotfile/issues"

"detect",
"dot",
"dotfile",
"expression",
"regular expression",
"file",
"filepath",
"find",
"fs",
"is",
"match",
"path",
"regex",
"regexp",
"regular"
]
],
"verb": {
"related": {
"list": [
"has-glob",
"is-glob",
"dotfile-regex",
"is-dotdir"
]
}
}
}
# is-dotfile [![NPM version](https://badge.fury.io/js/is-dotfile.svg)](http://badge.fury.io/js/is-dotfile)
> Return true if a file path is (or has) a dotfile.
> Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

@@ -17,17 +17,24 @@ ## Install

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');
//=> true
isDotfile('.gitignore');
//=> true
isDotfile('/.gitignore');
//=> true
isDotfile('/.gitignore/foo');
//=> false
```

@@ -37,5 +44,6 @@

* [dotfile-regex](https://github.com/regexps/dotfile-regex): Regular expresson for matching dotfiles.
* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.
* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://github.com/jonschlinkert/micromatch)
* [dotfile-regex](https://www.npmjs.com/package/dotfile-regex): Regular expresson for matching dotfiles. | [homepage](https://github.com/regexps/dotfile-regex)
* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob)
* [is-dotdir](https://www.npmjs.com/package/is-dotdir): Returns true if a path is a dot-directory. | [homepage](https://github.com/jonschlinkert/is-dotdir)
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)

@@ -52,3 +60,3 @@ ## Running tests

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-dotfile/issues/new)
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-dotfile/issues/new).

@@ -69,2 +77,2 @@ ## Authors

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 25, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 20, 2015._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc