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 (sindresorhus/shebang-regex) shows no recent GitHub updates since 2021-08-13, so it appears quiet or dormant rather than actively maintained as of 2026-09-10.
- There has been a long, irregular update cadence historically (2015-12-04 v2.0.0, 2019-04-27 v3.0.0, 2021-08-13 v4.0.0), and no evidence of further updates in the last several years.
AI summary generated
Recent updates
v4.0.0
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.
Breakingv3.0.0
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.
BreakingFeaturesv2.0.0
Release v2.0.0 was published on 2015-12-04, but the publisher did not include any release notes. Because no change descriptions are provided, developers should review the diff between the v2.0.0 tag and the previous version to identify any API, behavior, or configuration changes.