Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garthdb/glob-tester-cli
CLI implementation of glob to test it
https://github.com/garthdb/glob-tester-cli
Last synced: 15 days ago
JSON representation
CLI implementation of glob to test it
- Host: GitHub
- URL: https://github.com/garthdb/glob-tester-cli
- Owner: GarthDB
- Created: 2016-10-31T20:42:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T20:32:10.000Z (10 months ago)
- Last Synced: 2024-12-15T21:35:59.040Z (19 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Glob Tester CLI [![npm version](https://badge.fury.io/js/glob-tester-cli.svg)](https://badge.fury.io/js/glob-tester-cli)
Just a simple CLI tool to test [glob](https://www.npmjs.com/package/glob) patterns.
## Installation
It's meant to be a CLI tool to test glob patterns, so install it globally via npm.
```sh
$ npm install -g glob-tester-cli
```## Usage
Pass in the pattern as a string in quotes:
```sh
$ glob '*.js'
> Pattern: *.js
> Options: { }
> index.js
```### Root Option
Optionally, you can define the root option (where `/` points to).
```sh
$ glob '*.js' --root ~/Projects
> Pattern: *.js
> Options: { root: /Users/garthdb/Projects }
> index.js
```If no directory is included with `--root` the CLI assumes `process.cwd()`:
```sh
$ cd ~/
$ glob '*.js' --root
> Pattern: *.js
> Options: { root: /Users/garthdb/ }
> index.js
```