
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@agebrock/glob
Advanced tools
A Versatile CLI Tool for Efficient File Globbing
Globbing made easy! _glob is a command-line interface (CLI) tool designed to swiftly search and manipulate files based on patterns. Whether you're hunting for specific files, directories, or both, _glob has got you covered with its extensive feature set and intuitive usage.
_glob [options] <pattern>
-a, --absolute
: Return absolute paths for entries-b, --baseNameMatch
: Match the base name of the path-c, --caseSensitiveMatch
: Perform a case-sensitive match-C, --concurrency <number>
: Set the maximum number of concurrent requests-f, --followSymbolicLinks
: Follow symbolic links-i, --ignore <pattern>
: Add a pattern to exclude-m, --markDirectories
: Append / to directories-o, --objectMode
: Return objects instead of strings-D, --onlyDirectories
: Return only directories-F, --onlyFiles
: Return only files-B, --uniqueBaseName
: Return only unique filenames even if they are in different directories-S, --stats
: Return stats for entries-s, --suppressErrors
: Suppress errors-t, --throwErrorOnBrokenSymbolicLink
: Throw an error on broken symbolic links-u, --unique
: Ensure that the returned entries are unique--cwd <path>
: The current working directory for the glob--dot
: Include entries that begin with a .-O --outputCollection <outputCollection>
: Output the collection to a file or stdout by passing "stdout"-h, --help
: Display help for command// Use with relative paths
const stream = _glob('../!(node_modules)**/!(*.d)*.ts', { outputCollection: "./files.json" });
// Use with Windows drives or Linux
// The following example will search for all .ts files in the C:/Users directory, excluding the node_modules directory and excluding .d.ts files
const stream = _glob('C:/Users/!(node_modules)**/!(*.d)*.ts', { outputCollection: "./files.json" });
stream.pipe(process.stdout);
stream.on('data', (chunk) => {
console.log(chunk.toString());
});
// This will be triggered when the stream is done and collect equals to true or outputCollection is set
stream.on('files', (files) => {
console.log(files);
});
_glob.cmd *.json -O stdout
will output all matching files in a JSON format to the console
## PowerShell Autocomplete
For easy usage with PowerShell autocomplete, _glob normalizes Windows paths. Here's an example:
```powershell
# Use with PowerShell
_glob D:\agebrock\**\*
# Glob all JSON files and read their contents
_glob '**/*.json' | ForEach-Object { Get-Content $_ }
Install _glob globally to access it from anywhere:
npm install -g @agebrock/glob
Contributions are welcome! Feel free to open issues or pull requests on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
Get globbing with _glob and experience the power of effortless file searching and manipulation. Happy coding! 🚀
clean
- remove coverage data, Jest cache and transpiled files,prebuild
- lint source files and tests before building,build
- transpile TypeScript to ES6,build:watch
- interactive watch mode to automatically transpile source files,lint
- lint source files and tests,prettier
- reformat files,test
- run tests,test:watch
- interactive watch mode to automatically re-run testsFAQs
fast glob lib optimized for easy usage
The npm package @agebrock/glob receives a total of 0 weekly downloads. As such, @agebrock/glob popularity was classified as not popular.
We found that @agebrock/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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.