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

luds3

v0.1.2

Published

This is a CLI tool that enables fast content listing of S3 buckets. Also, it allows to easily upload, download and delete files.

Downloads

3

Readme

luds3

This is a CLI tool that enables fast content listing of S3 buckets. Also, it allows to easily upload, download and delete files.

Github license GitHub Release Github Issues coverage

Table of Contents

Installation

npm install luds3

Getting Started

By running the --help, the luds3 will print out all required to get you started:

trantor@guy:~/$ luds3 --help
Usage: luds3 [options] [command]

Options:
  -h, --help                 display help for command

Commands:
  set-credentials [options]  Setup aws IAM user credentials to access S3 resources.
  get-credentials            Get user credentials for IAM user.
  run-api [options]          Deploys the api to list and download items from the bucket param.
  list [options]             Lists all items and folders inside a bucket.
  download [options]         Downloads file from S3 bucket.
  upload [options]           Uploads file in S3 bucket.
  delete [options]           Deletes file in S3 bucket.
  help [command]             display help for command

Prerequisites

luds3 requires an IAM account with full privileges to access the S3 resources where the S3 buckets to perform all operations, reside.

Usage

luds3 consists of the following commands:

  • The set-credentials command will help you setup the ACCESS KEY, SECRET ACCESS KEY and REGION.
  • The list command will iterate over a chosen bucket and list all items
  • The download command will download a chosen item with a specific prefix from inside a bucket
  • The upload command will upload an item from local storage inside a chosen bucket
  • The delete command will delete an item in a chosen bucket
  • The run-server command will deploy an express server which will list at localhost:8008 the items of a bucket giving the opportunity to download any of them.

Examples

Set-Credentials:

trantor@guy:~/$ luds3 set-credentials -accesskey AKIISDHHTNHOJKIEMWGM3C -secretkey jd78day7d78878NnNAS/PQ+Rmt6IWJDIDtmjd -region eu-central-1

List:

trantor@guy:~/$ luds3 list -bucket mymages
2022-12-21 23:03:39 info: Valid S3 bucket.
2022-12-21 23:03:40 info: blue/
2022-12-21 23:03:40 info: blue/pexels-anjana-c-674010.jpg -- 1018 KB
2022-12-21 23:03:40 info: green/
2022-12-21 23:03:40 info: green/pexels-pixabay-414102.jpg -- 229 KB
2022-12-21 23:03:40 info: purple/
2022-12-21 23:03:40 info: purple/term-bg-1-3d6355ab.jpg -- 43 KB
2022-12-21 23:03:40 info: purple/test.jpg -- 1018 KB
2022-12-21 23:03:40 info: red/
2022-12-21 23:03:40 info: red/pexels-pixabay-206359.jpg -- 569 KB
2022-12-21 23:03:40 info: test.jpg -- 1018 KB
2022-12-21 23:03:40 info: yellow/

Delete:

luds3 delete -bucket mymages -key purple/test.jpg

Upload:

luds3 upload -bucket mymages -filepath /home/guy/Documents/test/test.jpg -prefix purple

Download:

luds3 download -bucket mymages -key blue/pexels-anjana-c-674010.jpg

Run-Server:

luds3 run-server -bucket mymages

Development

Installing Node and NPM is pretty straightforward using the installer package available from the (Node.js® web site)[https://nodejs.org/en/]. Having NPM installed, several dependencies should be installed as described in the next section.

Using NPM, install system specific software dependencies enclosed to package.json.

npm install

License

MIT -- take a look LICENSE

Technologies