{"name":"junk","version":"1.0.2","description":"Filter out OS junk files like .DS_Store and Thumbs.db","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/junk"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["junk","trash","garbage","files","os","ignore","exclude","filter","temp","tmp"],"devDependencies":{"ava":"0.0.3"},"gitHead":"3a7be1c4dd897607457038e6ceba7492a2ded0e4","bugs":{"url":"https://github.com/sindresorhus/junk/issues"},"homepage":"https://github.com/sindresorhus/junk","_id":"junk@1.0.2","_shasum":"cc71db3c05d53b3238d0f1dec97a88267c10700e","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cc71db3c05d53b3238d0f1dec97a88267c10700e","tarball":"http://registry-npm.ywwl.com/junk/download/junk-1.0.2.tgz","integrity":"sha512-DWfbVQjnWgStnFxnZTZ32/UMilTJRRLF9J/fByyIfCzoV+hdTmdeu9Rr2N9/2vdc8EIEslNPYOZW93k2M0496A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEadDU9y7t4my+q5QswvQGz9CtQObPtoVgVD/qamZpa1AiEA2OCul/jAJRkK2E4tZWDz9dANqfRLYx4WmcrsdNXkw7I="}],"size":1967,"noattachment":false,"key":"/junk/-/junk-1.0.2.tgz"},"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":1435576855315,"_cnpm_publish_time":1435576855315,"dist-tags":{"latest":"4.0.1"}}