
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@bleed-believer/mnt
Advanced tools
Manage partitions in linux.
Since ESM hs been heavely adopted by the whole node.js community (including transpilers, unit testing, and many other libraries), the CJS support has been removed. If you still needs the CJS compatibility, please use this version or earlier.
Simply use:
npm i --save @bleed-believer/mnt
Gets all mounted resources:
import { Resource } from '@bleed-believer/mnt';
const resources = await Resource.get();
console.log(resources);
Gets an specific resource:
import { Resource } from '@bleed-believer/mnt';
const resource = await Resource.find(x => x.target === '/mnt/z');
console.log(resource);
Checks if the resource is mounted:
import { Resource } from '@bleed-believer/mnt';
const resp = await Resource.some(x => x.target === '/mnt/z');
console.log('exists???', resp);
Filtering some devices:
import { Resource } from '@bleed-believer/mnt';
const resources = await Resource.filter(x => x.fstype === 'ext4');
console.log(resources);
Mounting a resource listed in /etc/fstab:
import { Resource } from '@bleed-believer/mnt';
const obj = await Resource.mount('/mnt/z');
console.log(obj);
Mounting a new resource:
import { Resource } from '@bleed-believer/mnt';
const obj = await Resource.mount({
fstype: 'ntfs',
source: '/dev/sdb2',
target: '/mnt/z'
});
console.log(obj);
Unmounting a resource:
import { Resource } from '@bleed-believer/mnt';
// Using only the target folder (listed in /etc/fstab)...
await Resource.umount('/mnt/z');
// ...or usinig an instance
const obj = await Resource.find(x => x.target === '/mnt/z');
await obj.umount();
FAQs
Manage partitions in linux.
The npm package @bleed-believer/mnt receives a total of 2 weekly downloads. As such, @bleed-believer/mnt popularity was classified as not popular.
We found that @bleed-believer/mnt demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.