
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
glob-extra
Advanced tools
Utility which provides expanding of masks, dirs and files to absolute file paths.
Wrapper for utility fast-glob with promises support which provides expanding of masks, dirs and files to absolute file paths.
$ npm install glob-extra
const globExtra = require('glob-extra');
const paths = ['some/path', 'other/path/*.js', 'other/deep/path/**/*.js']
// options are optional
globExtra.expandPaths(paths, options)
.then((files) => {
// ['/absolute/some/path/file1.js',
// '/absolute/other/path/file2.js',
// '/absolute/other/deep/path/dir/file3.js']
})
.done();
globExtra.expandPaths(paths, {formats: ['.txt', '.js']})
.then((files) => {
// will expand only js and txt files
})
.done();
FAQs
Utility which provides expanding of masks, dirs and files to absolute file paths.
The npm package glob-extra receives a total of 2,998 weekly downloads. As such, glob-extra popularity was classified as popular.
We found that glob-extra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.