Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-mingw

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

is-mingw - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js
'use strict';
const fs = require('fs');
const { execSync } = require('child_process');

@@ -10,3 +10,6 @@ const isMinGW = () => {

try {
return fs.readFileSync('/proc/version', 'utf8').toLowerCase.includes('mingw');
// Reference:
// http://man7.org/linux/man-pages/man1/uname.1.html
// https://en.wikipedia.org/wiki/Uname
return execSync('uname', {encoding: 'utf-8'}).toLowerCase().includes('mingw');
} catch (err) {

@@ -13,0 +16,0 @@ return false;

{
"name": "is-mingw",
"version": "1.0.0",
"version": "1.0.1",
"description": "Check if the process is running inside MinGW",

@@ -5,0 +5,0 @@ "main": "index.js",

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