
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
@open-tech-world/node-glob
Advanced tools
Match files & directories using glob patterns.
It uses @open-tech-worl/es-glob for matching paths.
See the list of supported glob patterns here.
✔️ Sync Matching API
🚧 Async Matching API
✔️ Supports Multiple Patterns
Using npm
npm install @open-tech-world/node-glob
Using Yarn
yarn add @open-tech-world/node-glob
import { globSync } from '@open-tech-world/node-glob';
globSync(patterns: string | string[],
options?: Partial<IOptions>): string[];
| Name | Type | Default | Description |
|---|---|---|---|
| cwd | string | process.cwd() | The current working directory in which to search files & folders. |
| dot | boolean | false | If true, it matches files & directories that begin with a "."(dot) character. |
| absolute | boolean | false | If true, it returns the absolute path. |
| dirs | boolean | true | If false, it does not include directories. |
| files | boolean | true | If false, it does not include files. |
my-app/
├─ node_modules/
├─ public/
│ ├─ favicon.ico
│ ├─ index.html
│ ├─ robots.txt
├─ src/
│ ├─ index.css
│ ├─ index.js
├─ .gitignore
├─ package.json
├─ README.md
import { globSync } from '@open-tech-world/node-glob';
globSync(['*']) // ['node_modules', 'public', 'src', 'package.json', 'README.md']
globSync(['*'], { dot: true }) // ['node_modules', 'public', 'src', '.gitignore', 'package.json', 'README.md']
globSync(['*', '!node_modules']) // ['public', 'src', 'package.json', 'README.md']
globSync(['*.json']) // ['package.json']
globSync(['src/index.*']) // ['src/index.css', 'src/index.js']
globSync(['**/index.[a-j]*']) // ['src/index.css', 'src/index.js']
globSync(['public/*.(html|ico)']) // ['public/index.html', 'public/favicon.ico']
Copyright (c) 2021, Thanga Ganapathy (MIT License).
FAQs
Match files & directories using glob patterns.
The npm package @open-tech-world/node-glob receives a total of 4 weekly downloads. As such, @open-tech-world/node-glob popularity was classified as not popular.
We found that @open-tech-world/node-glob 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.