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

@oawu/uploader

v3.0.6

Published

☁️ 上傳無上限,不管是 S3 或 GitHub

Readme

OA's Upload

上傳無上限,不管是 S3 或 GitHub ☁️

說明

針對指定的目錄,將內容上傳至 AWS S3GitHub Pages

安裝

npm install @oawu/uploader

使用

引入 require('@oawu/uploader') 並選擇要上的平台,如下 S3 範例:

  const { S3 } = require('@oawu/uploader')

  const destDir = '/.../dir/'

  const s3 = S3(destDir, {
    bucket: '',
    access: '',
    secret: '',
    region: ''
  })

  s3.execute(step, error => {
    // Error or Success
  })

execute 當有帶入 callback 時,會變成同步,反之則會變成非同步(async)

共用參數

  • destDir ─ 上傳的目錄,此為 必填
  • prefix ─ 前綴路徑,此為 ''
  • ignoreNames ─ 忽略的檔案名稱(主檔名+副檔名),預設 []
  • ignoreExts ─ 忽略的副檔名,預設 []
  • ignoreDirs ─ 忽略的目錄名稱,預設 []

S3 參數

  • bucket ─ S3 的 Bucket 名稱,此為 必填
  • access ─ S3 的 Access Key,此為 必填
  • secret ─ S3 的 Secret Key,此為 必填
  • region ─ S3 的 Region Key,此為 必填
  • option ─ 上傳 S3 時要的參數,可參考 aws-sdk,預設 {}

Github 參數

  • account ─ GitHub 上的帳號,此為 必填
  • repository ─ GitHub 上的倉庫,此為 必填
  • branch ─ GitHub 上的 pages 分支,預設 gh-pages
  • message ─ 紀錄時的文字訊息,預設 🚀 部署!

使用 Github 時,請先確保您的終端機可以正常 Push Git

以下為 GitHub 範例:

  const { GitHub } = require('@oawu/uploader')

  const destDir = '/.../dir/'

  const gitHub = GitHub(destDir, {
    account: '',
    repository: '',
    isDisplay: true
  })

  gitHub.execute(step, error => {
    // Error or Success
  })

step 為每一步驟的 callback,其格式如下:

 async function(string, async function(setter));

setter 格式如下:

{
  total: _ => { }, // 數量
  advance: _ => { }, // 進度
}