
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
deep-list-dir
Advanced tools
Recursively lists given directory, alternatively filtering results with given options
Deeply lists a directory filtering files by given pattern(s)
This module recursively lists all files in given directory (including sub-folders) by early filtering the results using the
given pattern
which can be an array of minimatch
expressions or RegExp
.
It will return all matching results. minimatch negative patterns are used to explicitly exclude a path from being scan / returned.
Take the following file structure:
<directory>
āāā dir1
ā āāā README.md
āāā dir2
ā āāā sub-dir2
ā āāā hi.txt
ā āāā index.js
āāā index.js
āāā README.md
...and the following script:
const { deepListDir, deepListDirSync } = require('deep-list-dir')
deepListDir('<directory>',
{
pattern: ['*.md'], // minimatch or RegExp
// base: '', set parent base to something different than given directory
// minimatchOptions: { matchBase: true } // minimatch options
}
).then(console.log)
Will output
[
"dir1/README.md",
"README.md"
]
A sync version is also provided:
console.log(deepListDirSync('<directory>', { pattern: '*.js'}))
Output:
[
"dir2/sub-dir2/index.js",
"index.js"
]
Ā© 2020-present Martin Rafael Gonzalez tin@devtin.io
FAQs
Recursively lists given directory, alternatively filtering results with given options
The npm package deep-list-dir receives a total of 26 weekly downloads. As such, deep-list-dir popularity was classified as not popular.
We found that deep-list-dir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.