@alienplatform/permissions

中文文档
3.3.54发布于 2026/11/05FSL-1.1-Apache-2.0TypeScriptES Module零依赖近 30 天下载 3511

Offline operation permission compilation using alien-permissions

原始使用文档

Operation permission compiler

This package runs alien-permissions in Node.js and browsers without a server connection. The generated WASM and JavaScript bindings contain the Rust compiler, not a second implementation.

After changing the Rust compiler, install the wasm-bindgen-cli version matching Cargo.lock, then run pnpm generate in this package. Compilation uses Rust 1.97.1 on Linux to produce the canonical artifact on Linux ARM64. Those hosts need that toolchain with the wasm32-unknown-unknown target; other hosts need Docker with ARM64 support, which runs the pinned Rust image and caches dependencies under target. The generated files are committed so consumers need neither Rust nor Docker.

executeOperationPermissions accepts a serialized operations::Request and returns a JSON result containing either ok: true, value or ok: false, error with an Alien structured error.

版本与发布记录

@alienplatform/permissions 共发布 28 个版本,首次发布于 2026/10/05;过去 12 个月发布了 28 个版本。

版本发布日期距今
3.3.54latest2026/11/051 天前
3.3.532026/11/042 天前
3.3.522026/11/042 天前
3.3.512026/11/042 天前
3.3.502026/11/033 天前
3.3.492026/11/024 天前

关于 @alienplatform/permissions 的常见问题

@alienplatform/permissions 是什么?

Offline operation permission compilation using alien-permissions

如何安装 @alienplatform/permissions?

在项目目录运行 npm install @alienplatform/permissions,或使用 pnpm add / yarn add / bun add。

@alienplatform/permissions 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@alienplatform/permissions 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@alienplatform/permissions 可以商用吗?

@alienplatform/permissions 使用 FSL-1.1-Apache-2.0 许可。声明的许可为 FSL-1.1-Apache-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@alienplatform/permissions 的下载量有多少?

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

@alienplatform/permissions 还在维护吗?

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