JSPM

is-dotdir

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8565
  • Score
    100M100P100Q129091F
  • License MIT

Returns true if a path is a dot-directory.

Package Exports

  • is-dotdir

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-dotdir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.