Back to Explore

fitzgen/glob-to-regexp

GitHub
1 watchersOpen source

Last release:

Converts bash-like glob patterns (for example, `*.min.js`, `?`, `[a-z]`, and `{*.html, *.js}`) into JavaScript regular expressions, with options for extended syntax, globstar `**` behavior, and RegExp flags. Useful when you need to take user-friendly wildcard patterns and match them efficiently using `RegExp`.

Project status

  • This GitHub source appears to be in maintenance mode or effectively abandoned, with upstream marked as archived and the last upstream push dated 2019-07-17, which is well over a year before 2026-08-12.
  • The available history shows very infrequent updates, with no updates after 2019 (version 0.4.1 in 2019-04-01, then 0.4.0 in 2018), indicating no recent cadence.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 0.4.1

    This release appears to be a metadata-only update. The only code diff is a package.json change that bumps the package version and adjusts the declared license identifier.

  • 0.4.0

    Release 0.4.0 has no publisher-provided release notes, so the only available change description is the code diff itself. The update modifies glob-to-regexp generation logic and adjusts tests accordingly.

    Breaking
  • 0.3.0

    Release 0.3.0 was published, but no release notes or change log details were provided by the publisher. As a result, there is no documented information here about new features, breaking changes, bug fixes, security updates, or migration steps.

  • 0.2.0

    Release 0.2.0 introduces new globstar handling to make `**` follow bash-like semantics. The code change also adds stricter input validation by throwing when the `glob` argument is not a string.

    BreakingFeatures
  • 0.1.0

    Release 0.1.0 changes how glob patterns are converted into regular expressions. The code now treats the RegExp global flag ('g') specially by altering how the generated regex is anchored, and the test suite was expanded accordingly.

    Breaking
  • 0.0.2

    Release 0.0.2 bumps the package version and updates the glob to RegExp conversion behavior. No release notes content was provided, so changes in the implementation and documented API surface cannot be verified against publisher documentation.

  • 0.0.1

    Release 0.0.1 was published on 2013-11-26. No release notes were provided, so no specific new features, bug fixes, breaking changes, or security updates can be determined from the published information.