Socket
Socket
Sign inDemoInstall

system-disk

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    system-disk

Get the system disk of the computer


Version published
Weekly downloads
7
decreased by-70.83%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

system-disk

Get the system disk of the computer (e.g. C: or /dev/sda)

For Windows this module uses the %SystemDrive% environment variable and the mount command for macOS and Linux.

Installation

npm install system-disk

Usage

import systemDisk from 'system-disk';

const disk = await systemDisk();
console.log(disk);
// => C:

API

systemDisk()

Returns the disk on the computer where the operating system is stored (the boot disk).

Keywords

FAQs

Last updated on 02 Mar 2023

Did you know?

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

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