Socket
Socket
Sign inDemoInstall

macos-version

Package Overview
Dependencies
12
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 3.0.0

10

index.js
'use strict';
var execFile = require('child_process').execFile;
var pify = require('pify');
var Promise = require('pinkie-promise');
const execa = require('execa');
module.exports = function () {
return pify(execFile, Promise)('sw_vers', ['-productVersion']).then(function (stdout) {
return stdout.trim();
});
};
module.exports = () => execa.stdout('sw_vers', ['-productVersion']);
{
"name": "macos-version",
"version": "2.1.1",
"version": "3.0.0",
"description": "Get the macOS version of the current system",

@@ -13,3 +13,3 @@ "license": "MIT",

"engines": {
"node": ">=0.10.0"
"node": ">=4"
},

@@ -32,4 +32,3 @@ "scripts": {

"dependencies": {
"pify": "^2.2.0",
"pinkie-promise": "^2.0.0"
"execa": "^0.4.0"
},

@@ -39,3 +38,6 @@ "devDependencies": {

"xo": "*"
},
"xo": {
"esnext": true
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc