{"name":"junk","version":"0.3.0","description":"Filter out OS junk files like .DS_Store and Thumbs.db","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/junk"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["junk","trash","garbage","files","os","ignore","exclude","filter","temp","tmp"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/junk/issues"},"homepage":"https://github.com/sindresorhus/junk","_id":"junk@0.3.0","dist":{"shasum":"6c89c636f6e99898d8efbfc50430db40be71e10c","tarball":"http://registry-npm.ywwl.com/junk/download/junk-0.3.0.tgz","integrity":"sha512-I1QFEJZO5Jk6N4rIv3PSqGpXcXf+zdGe1xoiL4bRVVYPzLD36rIyj9y5H4NGxNzRyXClOVaRYdKskjoetQxRDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1HuoKSd6pjcLoVJ5e/WmT6fCgFAFeiw4KKNh6gs5l7AiEAyjt5t0KxFJ0tQtQd/1zVYiDcagZQEoOWMuP+rNnyDwg="}],"size":1284,"noattachment":false,"key":"/junk/-/junk-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# junk\n\n> Filter out [system junk files](test.js) like `.DS_Store` and `Thumbs.db`\n\n## Install\n\n```\n$ npm install junk\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs/promises';\nimport {isNotJunk} from 'junk';\n\nconst files = await fs.readdir('some/path');\n\nconsole.log(files);\n//=> ['.DS_Store', 'test.jpg']\n\nconsole.log(files.filter(isNotJunk));\n//=> ['test.jpg']\n```\n\n## API\n\n### isJunk(filename)\n\nReturns `true` if `filename` matches a junk file.\n\n### isNotJunk(filename)\n\nReturns `true` if `filename` does not match a junk file.\n\n### junkRegex\n\nRegex used for matching junk files.\n","publish_time":1394127019404,"_cnpm_publish_time":1394127019404,"dist-tags":{"latest":"4.0.1"}}