New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

strip-shebang

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strip-shebang - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

11

package.json
{
"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');

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc