strip-shebang
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "strip-shebang", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Strip shebang (eg. #!/bin/sh) from a string", | ||
@@ -10,3 +10,3 @@ "license": "MIT", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
"url": "sindresorhus.com" | ||
}, | ||
@@ -17,3 +17,3 @@ "engines": { | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "xo && ava" | ||
}, | ||
@@ -34,7 +34,8 @@ "files": [ | ||
"dependencies": { | ||
"shebang-regex": "^1.0.0" | ||
"shebang-regex": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*" | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
@@ -8,3 +8,3 @@ # strip-shebang [![Build Status](https://travis-ci.org/sindresorhus/strip-shebang.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-shebang) | ||
```sh | ||
``` | ||
$ npm install --save strip-shebang | ||
@@ -17,6 +17,6 @@ ``` | ||
```js | ||
var fs = require('fs'); | ||
var stripShebang = require('strip-shebang'); | ||
const fs = require('fs'); | ||
const stripShebang = require('strip-shebang'); | ||
var str = fs.readFileSync('bin', 'utf8'); | ||
const str = fs.readFileSync('bin', 'utf8'); | ||
//=> #!/usr/bin/env node | ||
@@ -23,0 +23,0 @@ //=> console.log('unicorns'); |
2531
2
+ Addedshebang-regex@2.0.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
Updatedshebang-regex@^2.0.0