1.0.1 • Published 5 years ago

idisk v1.0.1

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
5 years ago

idisk

Get information about disk usage in Node.JS.

Install

npm install idisk

Usage

const idisk = require('idisk')

//Using default path ('C:' for Windows and '/' for Unix like OS)
idisk().then(info => {
	console.log(info.free)
	console.log(info.used)
	console.log(info.total)
})

//Using a specific path
idisk('C:').then(info => {
	console.log(info.free)
	console.log(info.used)
	console.log(info.total)
})