One Hat Cyber Team
Your IP :
216.73.217.131
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
esetkocsi
/
www
/
node_modules
/
junk
/
View File Name :
readme.md
# junk [](https://travis-ci.org/sindresorhus/junk) > Filter out [system junk files](test.js) like `.DS_Store` and `Thumbs.db` ## Install ``` $ npm install junk ``` ## Usage ```js const {promisify} = require('util'); const fs = require('fs'); const junk = require('junk'); const pReaddir = promisify(fs.readdir); (async () => { const files = await pReaddir('some/path'); console.log(files); //=> ['.DS_Store', 'test.jpg'] console.log(files.filter(junk.not)); //=> ['test.jpg'] })(); ``` ## API ### junk.is(filename) Returns `true` if `filename` matches a junk file. ### junk.not(filename) Returns `true` if `filename` doesn't match a junk file. ### junk.regex Regex used for matching junk files. ## License MIT © [Sindre Sorhus](https://sindresorhus.com)