shebang-regex
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -6,3 +6,3 @@ /** | ||
``` | ||
import shebangRegex = require('shebang-regex'); | ||
import shebangRegex from 'shebang-regex'; | ||
@@ -23,2 +23,2 @@ const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; | ||
export = shebangRegex; | ||
export default shebangRegex; |
@@ -1,2 +0,3 @@ | ||
'use strict'; | ||
module.exports = /^#!(.*)/; | ||
const shebangRegex = /^#!(.*)/; | ||
export default shebangRegex; |
{ | ||
"name": "shebang-regex", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Regular expression for matching a shebang line", | ||
"license": "MIT", | ||
"repository": "sindresorhus/shebang-regex", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"engines": { | ||
"node": ">=8" | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
@@ -31,6 +34,6 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.2", | ||
"xo": "^0.24.0" | ||
"ava": "^3.15.0", | ||
"tsd": "^0.17.0", | ||
"xo": "^0.44.0" | ||
} | ||
} |
@@ -1,6 +0,5 @@ | ||
# shebang-regex [![Build Status](https://travis-ci.org/sindresorhus/shebang-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/shebang-regex) | ||
# shebang-regex | ||
> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line | ||
## Install | ||
@@ -12,7 +11,6 @@ | ||
## Usage | ||
```js | ||
const shebangRegex = require('shebang-regex'); | ||
import shebangRegex from 'shebang-regex'; | ||
@@ -31,5 +29,12 @@ const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; | ||
--- | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-shebang-regex?utm_source=npm-shebang-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
Sorry, the diff of this file is not supported yet
3234
39
Yes