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

dotfile-regex

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotfile-regex - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "dotfile-regex",
"description": "Regular expresson for matching dotfiles.",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/regexps/dotfile-regex",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

@@ -15,4 +15,11 @@ # dotfile-regex [![NPM version](https://img.shields.io/npm/v/dotfile-regex.svg?style=flat)](https://www.npmjs.com/package/dotfile-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/dotfile-regex.svg?style=flat)](https://npmjs.org/package/dotfile-regex) [![NPM total downloads](https://img.shields.io/npm/dt/dotfile-regex.svg?style=flat)](https://npmjs.org/package/dotfile-regex) [![Linux Build Status](https://img.shields.io/travis/regexps/dotfile-regex.svg?style=flat&label=Travis)](https://travis-ci.org/regexps/dotfile-regex)

To be considered a dotfile, there cannot be any slashes following the filename.
To be considered a dot **file**:
* the path must contain a dot that is at the beginning of the string or following a slash
* the next character after the dot must not be another dot
* one or more characters must follow the dot
* a slash must not follow the dot
To check for dot **directories**, use [dotdir-regex](https://github.com/regexps/dotdir-regex) instead.
```js

@@ -19,0 +26,0 @@ var dotfileRegex = require('dotfile-regex');

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