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

community-cordova-plugin-disk-space

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

community-cordova-plugin-disk-space

[![NPM version](https://img.shields.io/npm/v/community-cordova-plugin-disk-space)](https://www.npmjs.com/package/community-cordova-plugin-disk-space) [![Downloads](https://img.shields.io/npm/dm/community-cordova-plugin-disk-space)](https://www.npmjs.com/

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version Downloads

This is a fork of the original plugin sqli-cordova-disk-space-plugin

Disk Space Plugin

This plugin allows to get information about disk space in Android / iOS / Windows 10 platforms.

Installation

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

Usage

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
}

Keywords

FAQs

Package last updated on 12 Apr 2023

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