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

picgo-plugin-s3

v1.3.9

Published

picgo amazon s3 uploader

Downloads

2,391

Readme

picgo-plugin-s3

github-action license npm

PicGo Amazon S3 上传插件。

  • 支持 Amazon S3 与其他如 backblaze b2 等兼容 S3 API 的云存储
  • 支持 PicGO GUI

安装 Installation

GUI 直接搜索 S3 下载即可,Core 版执行 picgo add s3 安装。

配置 Configuration

picgo set uploader aws-s3

| Key | 说明 | 例子 | |----------------------------|--------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------| | accessKeyID | AWS 凭证 ID | | | secretAccessKey | AWS 凭证密钥 | | | bucketName | S3 桶名称 | gallery | | uploadPath | 上传路径 | {year}/{month}/{fullName} | | urlPrefix | 最终生成图片 URL 的自定义前缀 | https://img.example.com/my-blog/ | | urlSuffix | 最终生成图片 URL 的自定义后缀 | ?oxx=xxx | | endpoint | 指定自定义终端节点 | s3.us-west-2.amazonaws.com | | proxy | 代理地址 | 支持 http 代理,例如 http://127.0.0.1:1080 | | region | 指定执行服务请求的区域 | us-west-1 | | pathStyleAccess | 是否启用 S3 Path style | 默认为 false,使用 minio 请设置为 true (e.g., https://s3.amazonaws.com// instead of https://.s3.amazonaws.com/) | | rejectUnauthorized | 是否拒绝无效 TLS 证书连接 | 默认为 true,如上传失败日志显示证书问题可设置为false | | acl | 访问控制列表,上传资源的访问策略 | 默认为 public-read, AWS 可选 private" |"public-read"|"public-read-write"|"authenticated-read"|"aws-exec-read"|"bucket-owner-read"|"bucket-owner-full-control | | disableBucketPrefixToURL | 开启 pathStyleAccess 时,是否要禁用最终生成 URL 中添加 bucket 前缀 | 默认为 false |

上传路径支持 payload:

| payload | 描述 | | --------------- | ---------------------- | | {year} | 当前日期 - 年 | | {month} | 当前日期 - 月 | | {day} | 当前日期 - 日 | | {hour} | 当前日期 - 时 | | {minute} | 当前日期 - 分 | | {second} | 当前日期 - 秒 | | {millisecond} | 当前日期 - 毫秒 | | {fullName} | 完整文件名(含扩展名) | | {fileName} | 文件名(不含扩展名) | | {extName} | 扩展名(不含.) | | {md5} | 图片 MD5 计算值 | | {sha1} | 图片 SHA1 计算值 | | {sha256} | 图片 SHA256 计算值 | | {timestamp} | Unix 时间戳 | | {timestampMS} | Unix 时间戳(毫秒) |

示例 Example

    "aws-s3": {
      "accessKeyID": "xxx",
      "secretAccessKey": "xxxxx",
      "bucketName": "my-bucket",
      "uploadPath": "{year}/{md5}.{extName}",
      "endpoint": "s3.us-west-000.backblazeb2.com",
      "urlPrefix": "https://img.example.com/"
    }

如果 PicGo 像以上配置,执行上传:picgo upload sample.png,则最终得到图片地址为:https://img.example.com/2021/4aa4f41e38817e5fd38ac870f40dbc70.jpg

发布 Publish

With the following command, a versioned commit which modifies the version of package.json would be genereated and pushed to the origin. Github Action will automatically compile this pacakage and publish it to NPM.

npm run patch
npm run minor
npm run major

贡献 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

许可证 License

Released under the MIT License.