{"name":"junk","version":"2.0.0","description":"Filter out system junk files like .DS_Store and Thumbs.db","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/junk.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["junk","trash","garbage","files","os","ignore","exclude","filter","temp","tmp","system","clean","cleanup"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"c5e8881ba471e8e11cad810ef4607b88c2a66504","bugs":{"url":"https://github.com/sindresorhus/junk/issues"},"homepage":"https://github.com/sindresorhus/junk#readme","_id":"junk@2.0.0","_shasum":"5e8e49503520ed095c4143af924e6d8d36f55754","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5e8e49503520ed095c4143af924e6d8d36f55754","tarball":"http://registry-npm.ywwl.com/junk/download/junk-2.0.0.tgz","integrity":"sha512-7QM713uasAASCG28Xs5SrFP01jJCuPB8qrrt2PqxjC5BCGQAIM2E4AUd+HpRg6B4oaqH7iyGTQ7UmhfpwJEC6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHwjobLgb3s5LnRDFILj73mwFHnBktUqImmloD/iVckGAiAQfSi1SPABSgyPS2wbRWsG+mGnSTZp2rEoH35JdFk8Dg=="}],"size":2038,"noattachment":false,"key":"/junk/-/junk-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/junk-2.0.0.tgz_1472300659235_0.2025048912037164"},"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":1472300660218,"_cnpm_publish_time":1472300660218,"dist-tags":{"latest":"4.0.1"}}