Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

shebang-regex

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

shebang-regex

Regular expression for matching a shebang line

    4.0.0latest
    Github

Version published
Maintainers
1
Weekly downloads
57,889,355
increased by5.05%

Weekly downloads

Readme

Source

shebang-regex

Regular expression for matching a shebang line

Install

$ npm install shebang-regex

Usage

import shebangRegex from 'shebang-regex'; const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; shebangRegex.test(string); //=> true shebangRegex.exec(string)[0]; //=> '#!/usr/bin/env node' shebangRegex.exec(string)[1]; //=> '/usr/bin/env node'
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Keywords

FAQs

What is shebang-regex?

Regular expression for matching a shebang line

Is shebang-regex popular?

The npm package shebang-regex receives a total of 46,946,054 weekly downloads. As such, shebang-regex popularity was classified as popular.

Is shebang-regex well maintained?

We found that shebang-regex demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 13 Aug 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc