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

aliyunoss-cli

v1.2.4

Published

Alibaba Cloud OSS file upload CLI.

Readme

aliyunoss-cli

npm version license

aliyunoss-cli recursively uploads a local directory to Alibaba Cloud Object Storage Service (OSS). It supports reusable JSON configuration, environment-specific source and target paths, and explicit command-line overrides.

Install

The package requires Node.js 22 or later. Install it as a development dependency in the project that produces the files you want to upload:

npm install --save-dev aliyunoss-cli

Configure

Create alioss.config.json in the directory where you run the command:

{
  "region": "oss-region-id",
  "accessKeyId": "your-access-key-id",
  "accessKeySecret": "your-access-key-secret",
  "bucket": "your-bucket",
  "releaseEnvConf": {
    "development": {
      "source": "dist/",
      "target": "site/development/"
    },
    "production": {
      "source": "dist/",
      "target": "site/production/"
    }
  }
}

The final configuration uses this precedence, from lowest to highest:

  1. Base values in the JSON file.
  2. Values from the selected releaseEnvConf entry.
  3. Explicit command-line flags.

The command requires region, accessKeyId, accessKeySecret, bucket, source, and target after merging configuration.

Warning: Never commit real OSS access keys. Keep credentials in a protected local file or inject them through a secured continuous integration environment.

Upload a directory

Select a configured environment:

npx aliyunoss-cli --releaseEnv development
npx aliyunoss-cli --releaseEnv production

Override individual values for one run:

npx aliyunoss-cli \
  --releaseEnv production \
  --source public/ \
  --target static/

The command recursively discovers files beneath source and uploads each file beneath target. Do not point it at production credentials or a production bucket until you have verified the resolved paths and configuration.

Command options

| Option | Purpose | | ------------------- | ------------------------------------------------------------------- | | --help | Show CLI help without starting an upload. | | --version | Show the CLI version. | | --config | Select a configuration file. The default is ./alioss.config.json. | | --releaseEnv | Select an entry from releaseEnvConf. | | --source | Override the local source directory. | | --target | Override the Alibaba Cloud OSS target path. | | --accessKeyId | Override the Alibaba Cloud OSS access key ID. | | --accessKeySecret | Override the Alibaba Cloud OSS access key secret. | | --bucket | Override the Alibaba Cloud OSS bucket. | | --region | Override the Alibaba Cloud OSS region. |

Run npx aliyunoss-cli --help to inspect the CLI without uploading files.

Use the package root

The package root re-exports the ali-oss client constructor for compatibility:

const OSS = require("aliyunoss-cli");

const client = new OSS({
  region: "oss-region-id",
  accessKeyId: "your-access-key-id",
  accessKeySecret: "your-access-key-secret",
  bucket: "your-bucket",
});

Creating a client does not upload data. An OSS operation such as client.put() performs a network request.

Develop

This repository uses pnpm for reproducible dependency installation:

corepack enable
pnpm install
pnpm run typecheck
pnpm run lint
pnpm test
pnpm run build
pnpm run docs
pnpm run format:check

pnpm run docs creates and validates the final GitHub Pages artifact in docs/. Generated bin/, lib/, dist-dev/, docs/, and coverage/ output must be changed through source or build configuration rather than manual edits.

License

MIT