UNPKG

bower

Version:

The browser package manager

31 lines (26 loc) 1.15 kB
'use strict'; // // All // /^npm-debug\.log$/, // npm error log // /^\..*\.swp$/, // vim state // // 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.re = /^npm-debug\.log$|^\..*\.swp$|^\.DS_Store$|^\.AppleDouble$|^\.LSOverride$|^Icon[\r\?]?|^\._.*|^\.Spotlight-V100$|\.Trashes|^__MACOSX$|~$|^Thumbs\.db$|^ehthumbs\.db$|^Desktop\.ini$/; exports.is = function (filename) { return exports.re.test(filename); }; exports.not = exports.isnt = function (filename) { return !exports.is(filename); };