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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2569