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

is-dotfile

Package Overview
Dependencies
Maintainers
2
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.3 to 2.0.0

8

index.js

@@ -8,8 +8,6 @@ /*!

var dotfileRegex = require('dotfile-regex');
module.exports = function(str) {
if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {
return true;
}
var slash = str.lastIndexOf('/');
return slash !== -1 ? str.charCodeAt(slash + 1) === 46 /* . */ : false;
return dotfileRegex().test(str);
};
{
"name": "is-dotfile",
"description": "Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.",
"version": "1.0.3",
"version": "2.0.0",
"homepage": "https://github.com/jonschlinkert/is-dotfile",

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

}
},
"dependencies": {
"dotfile-regex": "^0.1.2"
}
}
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