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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@otakustay/bce-sdk

v0.12.13

Published

Yet another Baidu Cloud SDK

Downloads

830

Readme

又一个BCE SDK

为什么

原版的@baiducloud/sdk不太好用,所以决定重新做一个。

想怎么样

  1. 全TypeScript实现,带类型。
  2. 只支持HTTPS协议,什么年代了去他的裸HTTP吧。
  3. 摆脱低版本Node运行的需求,使用新语方特性,诸如URLSearchParams
  4. 原则上不支持在浏览器里使用。
  5. ESM和CommonJS双构建,支持Tree Shaking。
  6. 基于原生fetchStream而得的更好的性能。

是不是能用

反正我是在各种项目里用着,个人用到哪个API就加哪个,也欢迎有需要的PR添加功能。

对于调试、日志等有需求的,同样可以提。

如何使用

安装:

npm install @otakustay/bce-sdk

以BOS列出对象为例:

import {BosClient} from '@otakustay/bce-sdk';

const client = new BosClient({region: 'bj', ak: 'xxx', sk: 'xxx'});
const response = await client.listObjects('some-bucket-name', {maxKeys: 100, prefix: 'prefix/'});
console.log(response.body.contents);

具体请参考各个客户端类的类型,基本就能知道怎么用了。

API文档建设中……