Socket
Socket
Sign inDemoInstall

is-windows-bash

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-windows-bash - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

1

index.js

@@ -8,2 +8,3 @@ fs = require('fs')

process.env &&
process.env.SHELL &&
process.env.SHELL.toLowerCase() === '/bin/bash');

@@ -10,0 +11,0 @@ }

@@ -58,3 +58,11 @@ const fs = require('fs');

process = proc;
})
});
test("Should retrun false without a shell variable", () => {
const proc = process;
process.env.SHELL = {};
expect(isWindowsBash()).toBe(false);
process = proc;
});
});

2

package.json
{
"name": "is-windows-bash",
"version": "1.0.2",
"version": "1.0.3",
"description": "Determines if Node is running on Windows Bash (WSL)",

@@ -5,0 +5,0 @@ "license": "MIT",

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