@ai-ecoverse/wasm-mount

中文文档
1.0.0-5发布于 2026/10/21Apache-2.0零依赖构建来源已验证近 30 天下载 1.7万

mount and umount: attach filesystems (tmpfs, hostfs and more) to directories.

原始使用文档

@ai-ecoverse/wasm-mount

mount and umount for slicc's wasm realm. Processes mount through the kernel's own drivers (tmpfs, fsa, hostfs, installed types).

pnpm add -g @ai-ecoverse/wasm-mount
mkdir -p /mnt/scratch /mnt/f
mount -t tmpfs -o maxfile=1g none /mnt/scratch
mount -t fsa none /mnt/f        # empty ("nomedium") until "Insert folder" in the page
mount                           # list /proc/mounts
umount /mnt/scratch
umount -l /mnt/f                # detach even if busy
  • mount [-l] [-t type] lists mounted filesystems.
  • mount [-frwv] [-t type] [-o options] <source> <directory> mounts (-f fakes it). ro/rw set read-only; other options go to the driver (maxfile=1g, …).
  • umount [-lfv] <directory>|<source>... unmounts; -l/-f detach at once.

Remount, bind and move mounts, mount -a and fstab lookups are not supported. The flags are a subset of util-linux's, with the same spellings and the same listing format. Exit codes follow util-linux: 1 for usage, 32 for mount failure.

Requires @ai-ecoverse/slicc-kernel ≥ 1.17.0 (process mounts, slicc-kernel#92); older kernels answer "mount(2) is not available".

1.0.0-5 (homescoop#666; 2026-10-20)

EPERM from mount or umount now reads Operation not permitted (not your mount point, or refused by the kernel's mount policy). Under users enforce a user may mount only over their own directories, and the old (process mounts are disabled here) was wrong for that case.

版本与发布记录

@ai-ecoverse/wasm-mount 共发布 6 个版本,首次发布于 2026/10/09;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.0.0-5latest2026/10/2116 天前
1.0.0-42026/10/1918 天前
1.0.0-32026/10/1720 天前
1.0.0-22026/10/1620 天前
1.0.0-12026/10/0928 天前
0.0.0-stage2026/10/0928 天前

关于 @ai-ecoverse/wasm-mount 的常见问题

@ai-ecoverse/wasm-mount 是什么?

mount and umount: attach filesystems (tmpfs, hostfs and more) to directories.

如何安装 @ai-ecoverse/wasm-mount?

在项目目录运行 npm install @ai-ecoverse/wasm-mount,或使用 pnpm add / yarn add / bun add。

@ai-ecoverse/wasm-mount 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasm-mount 是否存在。

@ai-ecoverse/wasm-mount 可以商用吗?

@ai-ecoverse/wasm-mount 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasm-mount 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasm-mount 在 2026/10/05 – 2026/11/03 这 30 天内被下载 16,861 次,日均约 562 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasm-mount 还在维护吗?

最新版本 1.0.0-5 发布于 2026/10/21(16 天前);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/10/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。