Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
tinyglobby
Advanced tools
A fast and minimal alternative to globby and fast-glob, meant to behave the same way.
Both globby and fast-glob present some behavior no other globbing lib has, which makes it hard to manually replace with something smaller and better.
This library uses only two subdependencies, unlike globby's 23 and fast-glob's 17.
import { glob, globSync } from 'tinyglobby';
await glob(['files/*.ts', '!**/*.d.ts'], { cwd: 'src' });
globSync(['src/**/*.ts'], { ignore: ['**/*.d.ts'] });
// you can also specify patterns inside the options object (exclusive to tinyglobby)
await glob({ patterns: ['src/*.ts', '!**/*.d.ts'], dot: true });
globSync({ patterns: ['src/**/*.ts', '!**/*.d.ts'], deep: 3 });
patterns
: An array of glob patterns to search for. Defaults to ['**/*']
.ignore
: An array of glob patterns to ignore.cwd
: The current working directory in which to search. Defaults to process.cwd()
.absolute
: Whether to return absolute paths. Defaults to false
.dot
: Whether to allow entries starting with a dot. Defaults to false
.deep
: Maximum depth of a directory. Defaults to Infinity
.expandDirectories
: Whether to expand directories. Disable to best match fast-glob
. Defaults to true
.onlyDirectories
: Enable to only return directories. Disables onlyFiles
if set. Defaults to false
.onlyFiles
: Enable to only return files. Defaults to true
.FAQs
A fast and minimal alternative to globby and fast-glob
The npm package tinyglobby receives a total of 1,377,591 weekly downloads. As such, tinyglobby popularity was classified as popular.
We found that tinyglobby 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.