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

simple-s3-deploy

v1.0.24

Published

A simple package to deploy static files to your AWS S3 bucket.

Downloads

98

Readme

Simple S3 Deploy

Simplest way to deploy static files to S3 bucket in aws.

Installation

Install with npm

  npm install simple-s3-deploy

Usage

const s3Deploy = require("simple-s3-deploy")

// Specify required data
const deployOptions = 
{
  ID : "AKIAULL....",
  SECRET : "HWr+7+NEYnPG.....",
  BUCKET_NAME : "my-bucket",
  DEPLOY_FOLDER_PATH : "./dist/",
  CACHE : 
  {
    ID : "XXXXXXXXXXXXXX",
    QUANTITY : 1,
    PATH : ["/*"],
  }
}

// Deploy
s3Deploy.deploy(deployOptions);

Parameters

deplay(deployOptions)

Takes deployOptions and deploys files to S3 bucket.

Deploy Options Keys :

| Keys | Sample | Description | | :-------- | :------- | :------------------------- | | ID | string | Required. Your AWS access key Id. | | SECRET | string | Required. Your AWS access key Secret. | | CROSS_ACCOUNT_ROLE | arn:aws:iam::99999999:role/dev | Optional. Your AWS role arn. | | BUILD_CMD | ng build | Optional. CMD build command to build project. | | BUCKET_NAME | my-bucket | Required. Your AWS S3 Bucket name where you eat to deploy code. | | DEPLOY_FOLDER_PATH | ./dist/app | Required. Local folder path where deployable files are build. | | IGNORE_FILES | [ "node_module", ".DS_Store" ] | Optional. Files that you dont want to upload. | | CACHE | { ID : "E17G7YNEXAMPLE", QUANTITY : 1, PATHS : ["/*"] } | Optional. Specify if you have distribution and you want to invalidate cache. |

CACHE Options Keys :

| Keys | Type | Sample | Description | | :-------- | :------- | :------- | :------------------------- | | ID | string | E17G7YNEXAMPLE | Required. Distribution Id where you want to create invalidation to clear cache. | | QUANTITY | number | 1 | Required. Number of file to delete. | | PATHS | Array | ["/"] | Required. List of paths that you want to clear. (["/"] to invalidate all files) |

License

MIT