@deepkit/filesystem-google

中文文档
1.1.0发布于 2026/11/01MITTypeScriptESM + CJS

Deepkit storage adapter for Google Storage

原始使用文档

Deepkit Google Storage Storage adapter

import { Storage } from '@deepkit/filesystem';
import { StorageGoogleAdapter } from '@deepkit/filesystem-google';

const storage = new Storage(new StorageGoogleAdapter({
    bucket: 'my-bucket',
    path: 'my-path/',
    projectId: 'my-project-id',
    
    keyFilename: '/path/to/keyfile.json',
    //or
    credentials: {
        client_email: '...',
        private_key: '...',
    }
}));

const files = await storage.files();
await storage.write('test.txt', 'hello world');

版本与发布记录

@deepkit/filesystem-google 共发布 21 个版本,首次发布于 2023/10/24;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.1.0latest2026/11/012 天前
1.0.192025/09/221.1 年前
1.0.182025/09/221.1 年前
1.0.152025/06/261.4 年前
1.0.52025/04/031.6 年前
1.0.32025/03/131.6 年前

关于 @deepkit/filesystem-google 的常见问题

@deepkit/filesystem-google 是什么?

Deepkit存储适配器谷歌存储

如何安装 @deepkit/filesystem-google?

在项目目录运行 npm install @deepkit/filesystem-google,或使用 pnpm add / yarn add / bun add。

@deepkit/filesystem-google 支持 TypeScript 吗?

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

@deepkit/filesystem-google 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@deepkit/filesystem-google 可以商用吗?

@deepkit/filesystem-google 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@deepkit/filesystem-google 还在维护吗?

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