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

s3artifactor

v1.0.3

Published

A command line nodejs app that utilizes AWS S3 for an artifact repository.

Downloads

6

Readme

s3artifactor

TravisCI Build status

Most developers don't worry about what they're code produces or where it is stored. We could rely on the build server to keep the artifacts until we need them, but what if we need to rebuild the build server? We created this tool to solve this problem.

S3Artifactor is a command line nodejs tool that utilizes AWS S3 to store and version our proprietary artifacts.

Install

npm install -g s3artifactor

Usage

Usage: s3artifactor [options]

  Options:

    -h, --help                output usage information
    -V, --version             output the version number
    -a, --action [value]      The action the artifactor is going to take.  Valid options are [list, push, get, delete]
    -b, --bucket [value]      The bucket the artifactor will search for the artifact in.
    -r, --region [value]      The region the bucket is available in.
    -i, --id [value]          The id of the artifact to retreive.
    -d, --destPath [value]    The destination path for a file in a get operation.
    -s, --sourcePath [value]  The source path for a file in a push operation.
    -v, --versionid [value]   The version of the artifact in a get, push, or delete operation.
    -p, --public              Makes the artifact public in a push operation.
    -e, --encrypt             Makes the artifact encrypted in a push operation.
    -o, --overwrite           Overwrites the version in a push operation.

List Available Versions of a particular artifact

s3artifactor --action list --region us-east-1 --bucket somebucket --id someartifact

Push an artifact to the artifactory

s3artifactor --action push --region us-east-1 --bucket somebucket --id someartifact --version 0.0.1 --sourcePath /someartifact.tar.gz

By default the s3artifactor makes the new artifact version private. However, you can supply the --public flag to make it public within S3. You can also tell the s3artifactor to encrypt your artifact within S3 with the --encrypt flag. If you try to push up a version that already exists in the artifactory, then the s3artifactor will fail. You can supply the --overwrite flag to allow the s3artifactor to overwrite a previous version.

Get an artifact from the artifactory

s3artifactor --action get --region us-east-1 --bucket somebucket --id someartifact --version 0.0.1 --destPath /artifactlocation.tar.gz

Delete an artifact version from the artifactory

s3artifactor --action delete --region us-east-1 --bucket somebucket --id someartifact --version 0.0.1