{"name":"junk","version":"2.1.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":"*"},"gitHead":"a586bcb8aa8a8b2439597c26337e679faf0c345c","bugs":{"url":"https://github.com/sindresorhus/junk/issues"},"homepage":"https://github.com/sindresorhus/junk#readme","_id":"junk@2.1.0","_shasum":"f431b4b7f072dc500a5f10ce7f4ec71930e70134","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f431b4b7f072dc500a5f10ce7f4ec71930e70134","tarball":"http://registry-npm.ywwl.com/junk/download/junk-2.1.0.tgz","integrity":"sha512-2jV5ZMGNsLCNrF3yfG58tcbKafDcQT0MvQ0guQBYfQJsIciNBy0PkNSFs0fmEd/jqA2L+KyfMy7q3aH5o8zYUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXfAqzcjQlgJgCgo8M4z0UI320OwrbLLKCwChaTiiSYwIhAMyIpM88UETMzKh3Xo/gbnpDB3JTlyOiOvy75fleslE4"}],"size":2079,"noattachment":false,"key":"/junk/-/junk-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/junk-2.1.0.tgz_1488164721294_0.8664798906538635"},"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":1488164723163,"_cnpm_publish_time":1488164723163,"dist-tags":{"latest":"4.0.1"}}