Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

zen-fs/iso

Repository files navigation

Caution

@zenfs/iso has been merged into @zenfs/archives, please use the archives repository!

ZenFS iso Backend

ZenFS backend for iso files.

Please read the ZenFS core documentation!

Backend

This package adds the Iso backend, which allows you to create a readonly file system from a .iso file.

For more information, see the API documentation.

Installing

npm install @zenfs/iso

Usage

import { configure, fs } from '@zenfs/core';
import { Iso } from '@zenfs/iso';

const res = await fetch('http://example.com/image.iso');

await configure({
	mounts: {
		'/mnt/iso': { backend: Iso, data: new Uint8Array(await res.arrayBuffer()) },
	},
});

const contents = fs.readFileSync('/mnt/iso/in-image.txt', 'utf-8');
console.log(contents);

Note

This implementation uses information on the ISO 9660 / ECMA 119 format/standard from: