Socket
Socket
Sign inDemoInstall

check-disk-space

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

check-disk-space

Light multi-platform disk space checker without third party for Node.js


Version published
Weekly downloads
1.3M
increased by1.57%
Maintainers
1
Weekly downloads
 
Created

What is check-disk-space?

The check-disk-space npm package is used to check the disk space available on a specified drive in a Node.js application. It provides a simple and efficient way to retrieve disk space information, such as free space and total space, which can be crucial for applications that manage or monitor system resources.

What are check-disk-space's main functionalities?

Check Disk Space

This feature allows you to check the disk space of a specified drive. It provides information about the total space and the free space available on the drive. The function returns a promise that resolves with an object containing the disk space details.

const checkDiskSpace = require('check-disk-space').default;

checkDiskSpace('/path/to/directory').then((diskSpace) => {
    console.log(diskSpace)
    // Output will include:
    // diskSpace.free: the available space on the disk
    // diskSpace.size: the total size of the disk
});

Other packages similar to check-disk-space

Keywords

FAQs

Package last updated on 28 Nov 2021

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

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