Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Run programs with glob/globstar support, especially on Windows within npm scripts.
Run programs with glob/globstar support, especially on Windows within npm scripts.
[sudo] npm install globstar --global
> globstar -- echo "**/globstar.js"
node_modules/globstar/globstar.js
Please note the --
and that globstar uses forward slashes.
$ 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:
"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:
$ npm run lint
$ globstar --help
Run programs with globstar support.
Usage: globstar [OPTION]... -- COMMAND [ARG]...
Note the -- between the globstar OPTIONS and the COMMAND and its arguments
Options:
--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 help
Report globstar bugs to <https://github.com/schnittstabil/globstar/issues>
globstar home page: <https://github.com/schnittstabil/globstar>
Copyright © 2015 Michael Mayer
Licensed under the MIT license.
FAQs
Run programs with glob/globstar support, especially on Windows within npm scripts.
We found that globstar 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.