Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

find-glob

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-glob

Find files using extensive glob syntax

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

find-glob

js-strict-standard-style

Regular find has inconsistent support for extended regex syntax. This replacement uses glob package syntax and will work consistently anywhere your Node works.

// Show js files in the directory
find-glob '**/*.js'

// Run eclint with all files you want to find
find-glob -0 '**/*.js' '**/*.json' '!node_modules/**' | xargs -0 eclint

// Check if your codebase contains TODO notes:
find-glob --contain 'TODO' --fail-on-empty '**/*.js'

Options

-0 enables a null byte separator, to be used with -0 in xargs.

--contain '^http:' will filter only the files that contain the passed regular expression, which is run in multi-line mode by default, so ^ and $ refer to a line begin and line end.

--fail-on-empty will return an error code if no files have been found.

Keywords

FAQs

Package last updated on 20 Apr 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc