
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@planetarium/check-free-space
Advanced tools
This package uses native OS APIs to get free size available on specified path. It is powered by fs2 under the hood.
import { getFreeSpace } from '@planetarium/check-free-space';
getFreeSpace('./')
Gets free space available on specified path. It returns BigInt.
import { checkFreeSpace } from '@planetarium/check-free-space';
if (checkFreeSpace('./', BigInt(1_000_000_000_000))) {
console.log('Enough space available');
}
Checks if there are enough space to store specified amount of bytes in a specified path. You can provide a BigInt, string, or number value for bytes.
If you passed a string as bytes, it may throw if the string cannot be parsed as numerical value. If BigInt is passed, it will be converted to Rust u64 during the process.
FAQs
Checks free space.
The npm package @planetarium/check-free-space receives a total of 0 weekly downloads. As such, @planetarium/check-free-space popularity was classified as not popular.
We found that @planetarium/check-free-space demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.