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

macos-release

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-release

Get the name and version of a macOS release from the Darwin version

2.1.0
Source
npm
Version published
Weekly downloads
2.9M
5.16%
Maintainers
1
Weekly downloads
 
Created

What is macos-release?

The macos-release npm package is used to get the macOS name and version from the Darwin version. It is useful for applications that need to display or log the macOS version in a human-readable format.

What are macos-release's main functionalities?

Get macOS release name and version

This feature allows you to get the macOS release name and version. The code sample demonstrates how to use the macos-release package to get the current macOS release information and log it to the console.

const macosRelease = require('macos-release');
const release = macosRelease();
console.log(release);

Get macOS release name and version from a specific Darwin version

This feature allows you to get the macOS release name and version from a specific Darwin version. The code sample demonstrates how to use the macos-release package to get the macOS release information for Darwin version '20.3.0' and log it to the console.

const macosRelease = require('macos-release');
const release = macosRelease('20.3.0');
console.log(release);

Other packages similar to macos-release

Keywords

macos

FAQs

Package last updated on 17 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts