Back to Explore

sindresorhus/shebang-regex

GitHub
1 watchersOpen source

Last release: 8/13/2021

shebang-regex provides a JavaScript regular expression for matching a Unix shebang line (the #! prefix at the start of a script). It includes easy usage to test a string and extract the interpreter path from a line like #!/usr/bin/env node.

Project status

  • The source appears maintained in the past, but the most recent upstream push and listed update are from 2021-08-13 (v4.0.0), with no evidence of updates after that date in the provided material.
  • Update/release cadence based on the evidence looks sparse, with major updates in 2019-04-27 (v3.0.0) and 2021-08-13 (v4.0.0), suggesting infrequent major changes rather than regular ongoing iteration.

AI summary generated Today

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

Recent updates

  • v4.0.0

    8/13/2021

    Release v4.0.0 converts shebang-regex to a pure ESM package and updates its Node.js engine requirements. The diff also shows changes to how the RegExp is exported (default export) along with TypeScript declaration updates and various tooling/dependency and repository config updates.

    Breaking
  • v3.0.0

    4/27/2019

    v3.0.0 introduces a new TypeScript definition file for the package. The main breaking change is a Node.js runtime requirement update, which may affect older environments.

    BreakingFeatures