zen-fs-unpkg
v0.1.1
Published
ZenFS unpkg backends
Downloads
82
Readme
ZenFS Unpkg Backends
ZenFS backends for unpkg.
[!IMPORTANT] Please read the ZenFS core documentation!
Usage
The easiest way to get started is by looking at these examples
import { configure, fs } from '@zenfs/core';
import { Unpkg } from 'zen-fs-unpkg';
await configure({
mounts: {
'/node_modules': { backend: Unpkg, baseUrl: 'https://unpkg.com' },
},
});
const contents = await fs.promises.readFile('/node_modules/[email protected]/index.js', 'utf-8');
console.log(contents);