
Research
GemStuffer Campaign Abuses RubyGems as Exfiltration Channel Targeting UK Local Government
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.
@type-any/react-native-clear-cache
Advanced tools
This library is clear app cache for react native.
npm install @type-any/react-native-clear-cache
import ClearCache, { formatFileSize } from '@type-any/react-native-clear-cache';
// ...
// This method will return byte size
const cacheDirSize = await ClearCache.getCacheDirSize();
// Convert byte size to read easy
// second parameter is used to truncate digits, default value is 4
const format = formatFileSize(cacheDirSize);
// file size symbol example
formatFileSize(422); // 422 Bytes
formatFileSize(122304); // 119.4375 KB
formatFileSize(10000000); // 9.5367 MB
formatFileSize(87919837478); // 81.8817 GB
formatFileSize(191238495867681); // 173.9304 TB
formatFileSize(929292929384748571); // 825.3779 PB
formatFileSize(9292929293847485728); // 8.0603 EB
formatFileSize(9292929293847485719928); // 7.8714 ZB
formatFileSize(13847885919183748857185858); // 11.4547 YB
// truncate digits example
formatFileSize(122304); // 119.4375 KB
formatFileSize(122304, 2); // 119.44 KB
// Clear cacheDir
// On Android, will clear both inteinternalCacheDir and externalCacheDir
await ClearCache.clearCacheDir();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
This library is clear app cache for react native.
We found that @type-any/react-native-clear-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.

Research
Socket detected 84 compromised TanStack npm package artifacts modified with suspected CI credential-stealing malware.