shebang-regex
npmv4.0.0Regular expression for matching a shebang line
Overview
shebang-regex is an npm package that regular expression for matching a shebang line. The latest version is 4.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need regular expression for matching a shebang line and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of shebang-regex.
Dependencies
Dev (3)
Used by
Popular packages that depend on shebang-regex.
Alternatives to shebang-regex
Returns true if a string has an extglob.
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Match balanced character pairs, like "{" and "}"
Matches strings against configurable strings, globs, regular expressions, and/or functions
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
ES6 spec-compliant RegExp.prototype.flags shim.
Escape RegExp special characters
Tokenizes a string that represents a regular expression.
Compile regular expressions using named groups to ES5.
Get the first fulfilled promise that satisfies the provided testing function
Express style path to RegExp utility
Get details about the current Continuous Integration environment
Version history
| Version | Published | License |
|---|---|---|
| 4.0.0latest | 5 years ago | MIT |
| 3.0.0 | 7 years ago | MIT |
| 2.0.0 | 10 years ago | MIT |
| 1.0.0 | 11 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install shebang-regex?
Run `npm install shebang-regex` to add shebang-regex to your npm project.
What license is shebang-regex released under?
shebang-regex is distributed under the MIT license.
How popular is shebang-regex?
shebang-regex has approximately 0 downloads per week and 1 known dependent packages.