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

cloud-bucket-cli

v1.0.0

Published

A simple S3 toolkit that allows you to upload/download files and folders to S3

Downloads

1

Readme

CloudBucket

This program is intended to make it easy to interact with S3 buckets regardless of service used.

Setup

Before running the program, you need to create a .env file with the following variables:

  • AWS_ACCESS_KEY_ID: Your AWS access key ID.
  • AWS_SECRET_ACCESS_KEY: Your AWS secret access key.
  • AZURE_STORAGE_CONNECTION_STRING: Your Azure storage connection string.
  • AZURE_STORAGE_ACCOUNT: Your Azure storage account name.
  • GCLOUD_KEYFILE_PATH: The path to your Google Cloud service account key file.
  • GCP_PROJECT_ID: Your Google Cloud project ID.

You can also pass these values as environment variables instead of using a .env file.

Usage

To use the program, run node index.js followed by the desired options. You can also run node index.js without options to be prompted for the necessary information.

Options

  • --service <service>: The cloud storage service you are using (aws, azure, or google).
  • --action <action>: The action you want to perform (upload or download).
  • --file <file>: The name of the file you want to upload or download. For uploading, you can also specify the full path to the file.
  • --folder <folder>: The path to the folder you want to upload. This option is not used for downloading.
  • --bucket <bucket>: The name of the AWS S3 bucket.
Examples

Upload a file to an AWS S3 bucket:

node index.js --service aws --action upload --file path/to/file.txt --bucket your-bucket-name

Download a file from an AWS S3 bucket:

node index.js --service aws --action download --file file.txt --bucket your-bucket-name

Upload a file to Azure Blob Storage:

node index.js --service azure --action upload --file path/to/file.txt

Download a file from Azure Blob Storage:

node index.js --service azure --action download --file file.txt

Upload a file to Google Cloud Storage:

node index.js --service google --action upload --file path/to/file.txt

Download a file from Google Cloud Storage:

node index.js --service google --action download --file file.txt

Prompt for information:

node index.js

This will prompt you for the cloud storage service, action, and any other necessary information. The program will guide you through the process of selecting the appropriate service and action, and entering any required parameters such as the bucket or file name.