
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
community-cordova-plugin-disk-space
Advanced tools
[](https://www.npmjs.com/package/community-cordova-plugin-disk-space) [](https://www.npmjs.com/
This plugin allows to get information about disk space in Android / iOS / Windows 10 platforms.
To use this plugin in a project, you have to do:
cordova plugin add community-cordova-plugin-disk-space
Add your platforms targeted:
cordova platform add android
cordova platform add ios
cordova platform add windows
1- You can get disk information by executing the info function:
DiskSpacePlugin.info(options, successCallback, errorCallback);
Where options is a javascript object:
location: 1 // To get information about external storage (For android only)
location: 2 // To get information about internal storage (For android only)
The result object is like that:
{
"app": 29887, // Space occupied by the current application
"total": 98717873000, // Total space of the device
"free": 76556280 // Free space of the device
}
FAQs
[](https://www.npmjs.com/package/community-cordova-plugin-disk-space) [](https://www.npmjs.com/
We found that community-cordova-plugin-disk-space demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.