Socket
Socket
Sign inDemoInstall

shebang-regex

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

2

index.js
'use strict';
module.exports = /^#!.*/;
module.exports = /^#!(.*)/;
{
"name": "shebang-regex",
"version": "1.0.0",
"description": "Regular expression for matching a shebang",
"version": "2.0.0",
"description": "Regular expression for matching a shebang line",
"license": "MIT",

@@ -16,3 +16,3 @@ "repository": "sindresorhus/shebang-regex",

"scripts": {
"test": "node test.js"
"test": "xo && ava"
},

@@ -28,7 +28,9 @@ "files": [

"match",
"test"
"test",
"line"
],
"devDependencies": {
"ava": "0.0.4"
"ava": "*",
"xo": "*"
}
}
# shebang-regex [![Build Status](https://travis-ci.org/sindresorhus/shebang-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/shebang-regex)
> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix))
> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line

@@ -16,4 +16,4 @@

```js
var shebangRegex = require('shebang-regex');
var str = '#!/usr/bin/env node\nconsole.log("unicorns");';
const shebangRegex = require('shebang-regex');
const str = '#!/usr/bin/env node\nconsole.log("unicorns");';

@@ -20,0 +20,0 @@ shebangRegex.test(str);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc