New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

is-dotdir

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-dotdir

Returns true if a path is a dot-directory.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.4K
decreased by-33.92%
Maintainers
1
Weekly downloads
 
Created
Source

is-dotdir NPM version

Returns true if a path is a dot-directory.

Install

Install with npm

$ npm i is-dotdir --save

Usage

var isDotdir = require('is-dotdir');

isDotdir('a/b/c/.gitignore');
//=> false

isDotdir('a/.git/a/b/');
//=> true
  • dotdir-regex: Regex for matching dot-directories, like .git/
  • dotfile-regex: Regular expresson for matching dotfiles.
  • ext-regex: Regular expression for matching file extensions. Matches single and/or multiple file extensions, like .min.js.
  • filename-regex: Regular expression for matching file names, with or without extension.
  • is-glob: Returns true if the given string looks like a glob pattern.
  • is-dotfile: Return true if a file path is (or has) a dotfile.
  • path-regex: Regular expression for matching the parts of a file path.

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on July 07, 2015.

FAQs

Package last updated on 07 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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