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

junk

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junk - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

38

junk.js
'use strict';
exports.rules = [
// OS X
/^\.DS_Store/, // stores custom folder attributes
/^\.AppleDouble$/, // stores additional file resources
/^\.LSOverride$/, // contains the absolute path to the app to be used
/^Icon[\r\?]?/, // custom Finder icon
/^\._.*/, // thumbnail
/^.Spotlight-V100$/, // file that might appear on external disk
/\.Trashes/, // file that might appear on external disk
/^__MACOSX$/, // resource fork
// Linux
/~$/, // backup file
// Windows
/^Thumbs\.db$/, // image file cache
/^ehthumbs\.db$/, // folder config file
/^Desktop.ini$/ // stores custom folder attributes
// OS X
/^\.DS_Store/, // stores custom folder attributes
/^\.AppleDouble$/, // stores additional file resources
/^\.LSOverride$/, // contains the absolute path to the app to be used
/^Icon[\r\?]?/, // custom Finder icon
/^\._.*/, // thumbnail
/^.Spotlight-V100$/, // file that might appear on external disk
/\.Trashes/, // file that might appear on external disk
/^__MACOSX$/, // resource fork
// Linux
/~$/, // backup file
// Windows
/^Thumbs\.db$/, // image file cache
/^ehthumbs\.db$/, // folder config file
/^Desktop\.ini$/ // stores custom folder attributes
];
exports.is = function (filename) {
return exports.rules.some(function (rule) {
return rule.test(filename);
});
return exports.rules.some(function (rule) {
return rule.test(filename);
});
};
exports.isnt = function (filename) {
return !exports.is(filename);
return !exports.is(filename);
};
{
"name": "junk",
"version": "0.2.0",
"version": "0.2.1",
"description": "Helps you filter out OS junk files like .DS_Store and Thumbs.db",

@@ -5,0 +5,0 @@ "keywords": [

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