0.0.6 • Published 1 year ago
globflow v0.0.6
globflow
globflow is a tool for scanning files in a directory with glob patterns and processing the results.
Installation
You can install globflow using bun or npm.
Using bun
bun install globflowUsing npm
npm install globflowUsage
globflow provides a command-line interface (CLI) to scan files using glob patterns.
Basic Usage
To scan files using a glob pattern:
$ npx globflow "./*.json"
./tsconfig.json
./package.jsonUsing with bun
You can also use globflow directly with bun:
$ bunx globflow "./*.ts"
./cli.ts
./index.tsAdditional Options
--md: Read contents and combine into code-prompt style markdown.-m, --message: Suffix message of output markdown. You can put a prompt message here for LLM.
Examples
Scan all .ts files:
bun cli.ts "./*.ts"Scan all .json files:
bunx globflow "./*.json"Development
Building the Project
To build the project, run:
bun run buildRunning Tests
To run tests, execute:
bun run testLicense
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributing
If you find any issues or have suggestions, feel free to open an issue or create a pull request on the GitHub repository.