Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schnittstabil/globstar
Run programs with glob/globstar support, especially on Windows within npm scripts.
https://github.com/schnittstabil/globstar
Last synced: 3 months ago
JSON representation
Run programs with glob/globstar support, especially on Windows within npm scripts.
- Host: GitHub
- URL: https://github.com/schnittstabil/globstar
- Owner: schnittstabil
- License: mit
- Created: 2015-03-12T21:13:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T14:54:27.000Z (7 months ago)
- Last Synced: 2024-03-18T17:16:57.964Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-nodejs-cross-platform-cli - globstar - Run programs with glob/globstar support like `**`. e.g. `globstar -- echo "**/globstar.js"`. (Packages)
README
globstar [![Build Status](https://travis-ci.org/schnittstabil/globstar.svg?branch=master)](https://travis-ci.org/schnittstabil/globstar) [![Coverage Status](https://coveralls.io/repos/schnittstabil/globstar/badge.svg?branch=master)](https://coveralls.io/r/schnittstabil/globstar?branch=master)
========Run programs with glob/globstar support, especially on Windows within npm scripts.
Install
-------```sh
[sudo] npm install globstar --global
```Usage
-----```sh
> globstar -- echo "**/globstar.js"
node_modules/globstar/globstar.js
```Please note the `--` and that globstar uses forward slashes.
npm Scripts
-----------```sh
$ npm install globstar --save-dev// e.g. install some linter
$ npm install eslint --save-dev
$ npm install editorconfig-tools --save-dev
```Please note that Windows needs double quotes:
```json
"scripts": {
"lint": "npm run -s lint-js && npm run -s lint-ec",
"lint-js": "globstar --node -- eslint \"**/*.js\"",
"lint-ec": "globstar --node -- editorconfig-tools check \"**/*.js\""
},
```Lint your `**/*.js` files:
```sh
$ npm run lint
```Options
-------```
$ globstar --help
Run programs with globstar support.Usage: globstar [OPTION]... -- COMMAND [ARG]...
Note the -- between the globstar OPTIONS and the COMMAND and its argumentsOptions:
--nodir glob patterns do not match directories, only files
-i, --ignore add glob pattern to exclude from matches
-n, --node same as `--ignore "node_modules/**"`
-v, --verbose explain what is being done
--version display version information
--help Show helpReport globstar bugs to
globstar home page:
```License
-------Copyright © 2015 Michael Mayer
Licensed under the [MIT license](LICENSE).