![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
node-ext2fs uses the e2fsprogs project to provide access to ext filesystem from javascript.
The node-
in node-ext2fs
is here because it was a native node module until v3.0.0
(excluded).
Since v3.0.0
, it is a WebAssembly module built with emscripten.
Some things you can do with this module:
fs
moduleSimply install node-ext2fs
using npm
:
$ npm install node-ext2fs
To build node-ext2fs
you need to have make
and emcc
from emscripten >= 2.0.7 available on your
environment.
Build node-ext2fs
using npm
:
$ npm run build
Mount a disk image and use the returned fs
object.
The fs returned object behaves like node's fs
except it doesn't provide any
xxxxSync method.
You can also issue DISCARD
requests using the fs async trim()
method.
See the example below.
const { withMountedDisk } = require('ext2fs');
const { FileDisk, withOpenFile } = require('file-disk');
const { promisify } = require('util');
async function main() {
const diskImage = '/some/disk.image';
const offset = 272629760; // offset of the ext partition you want to mount in that disk image
try {
await withOpenFile(diskImage, 'r', async (handle) => {
const disk = new FileDisk(handle);
await withMountedDisk(disk, offset, async (fs) => {
const readdir = promisify(fs.readdir);
// List files
console.log('readdir', await readdir('/'));
await fs.trim();
// Show discarded regions
console.log('discarded', disk.getDiscardedChunks());
// Show ranges of useful data aligned to 1MiB
console.log('ranges', await disk.getRanges(1024 ** 2));
});
});
} catch (error) {
console.error(error);
}
}
If you're having any problems, please raise an issue on GitHub.
node-ext2fs is free software, and may be redistributed under the terms specified in the license.
v3.1.1
FAQs
WASM bindings to libext2fs for cross-platform ext filesystem handling
The npm package ext2fs receives a total of 6,325 weekly downloads. As such, ext2fs popularity was classified as popular.
We found that ext2fs 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.