npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@atorber/baiducloud-sdk

v1.0.3

Published

Baidu Cloud Engine JavaScript SDK

Readme

Baidu Cloud Engine JavaScript SDK 三方版

Build Status NPM version Coverage Status

🎉 TypeScript 重构完成!

该 SDK 已完成 TypeScript 重构,提供完整的类型安全和智能代码补全功能:

  • 100+ TypeScript 接口和枚举
  • 严格类型检查,零编译错误
  • 完全向后兼容,现有 JavaScript 代码无需修改
  • 双包发布支持(CommonJS + ES Modules)
  • 17/17 兼容性测试通过

查看详细重构报告:TYPESCRIPT_MIGRATION.md

文档地址:https://baidubce.github.io/bce-sdk-js/

通过 NPM 安装

npm i @atorber/baiducloud-sdk

TypeScript 使用示例

import { BosClient, BceConfig, PutObjectOptions, StorageClass } from '@atorber/baiducloud-sdk';

const config: BceConfig = {
  endpoint: 'https://bos.baidubce.com',
  credentials: {
    ak: 'your-access-key',
    sk: 'your-secret-key'
  }
};

const client = new BosClient(config);

// 完整的类型提示和检查
const options: PutObjectOptions = {
  'Content-Type': 'image/jpeg',
  'x-bce-storage-class': StorageClass.STANDARD
};

await client.putObject('bucket-name', 'key', fileData, options);

JavaScript 使用(完全兼容)

const { BosClient } = require('@atorber/baiducloud-sdk');

// 现有代码完全兼容,无需修改
const client = new BosClient(config);
await client.putObject('bucket-name', 'key', fileData);

通过 CDN 引用

${version}处使用版本号替换,比如1.0.0-rc.37

<script src="https://bce.bdstatic.com/lib/@baiducloud/sdk/${version}/baidubce-sdk.bundle.min.js"></script>

发布

# 检查已发布版本号
npm view @baiducloud/sdk versions

# 更新版本号
# <version> -- 指定的版本号
npm version <version> --git-tag-version false

# 编译(注意:pack指令已废弃)
npm run build

git add -u .
git commit -m "bump: <version>"

# 发布测试版本
npm publish --tag beta --registry=https://registry.npmjs.org
# 发布正式版本
npm publish

# 发布到CDN
npm run publish:bos

更新日志

2024-8-24

  • 重大更新:TypeScript 重构完成
    • 完整的 TypeScript 类型定义(100+ 接口和枚举)
    • 严格类型检查,无编译错误
    • 完全向后兼容,现有 JavaScript 代码无需修改
    • 双包发布支持(CommonJS + ES Modules)
    • 17/17 兼容性测试通过
  • 🔧 新增 TypeScript 示例和文档
  • ⚙️ 优化构建配置和开发工具链

2024-8-31

  • 支持AIHC相关API