
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
Expands file patterns, returning the matched and unmatched files and directories.
Exports a contructor taking a list of file patterns as input, returning a file-set instance containing the expanded patterns split into separate lists of files, dirs and notExisting.
Example
const FileSet = require('file-set')
$ npm install file-set --save
> const FileSet = require('file-set');
> new FileSet([ '*', 'not/existing/*' ])
FileSet {
files: [ 'LICENSE', 'package.json', 'README.md' ],
dirs: [ 'jsdoc2md/', 'lib/', 'node_modules/', 'test/' ],
notExisting: [ 'not/existing/*' ] }
Exports a contructor taking a list of file patterns as input, returning a file-set instance containing the expanded patterns split into separate lists of files, dirs and notExisting.
Example
const FileSet = require('file-set')
Array.<string>Array.<string>Array.<string>Expands file patterns, returning the matched and unmatched files and directories
| Param | Type | Description |
|---|---|---|
| patternList | string | Array.<string> | A pattern, or array of patterns to expand |
Array.<string>The existing files found
Kind: instance property of FileSet
Array.<string>The existing directories found
Kind: instance property of FileSet
Array.<string>Paths which were not found
Kind: instance property of FileSet
add file patterns to the set
Kind: instance method of FileSet
| Param | Type | Description |
|---|---|---|
| files | string | Array.<string> | A pattern, or array of patterns to expand |
© 2014-16 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.
The 'glob' package is a popular library for matching files using glob patterns. It is more flexible and powerful than file-set, but requires more configuration and does not support exclusion patterns as easily.
The 'fast-glob' package is a high-performance alternative to 'glob'. It supports advanced features like negative patterns for exclusion and is faster, making it suitable for large projects with many files.
The 'multimatch' package allows you to match files against multiple glob patterns, including support for exclusion patterns. It is similar to file-set but offers more advanced pattern matching capabilities.
FAQs
Cross-platform glob expansions simplified. Input: file paths and glob expressions. Output: resolved file paths organised by type (file, directory and not-found).
The npm package file-set receives a total of 288,511 weekly downloads. As such, file-set popularity was classified as popular.
We found that file-set demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.