Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including verdaccio-s3-storage with all npm packages installed. Try it out:

var verdaccioS3Storage = require("verdaccio-s3-storage")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

verdaccio-s3-storage v0.2.1

aws s3 storage implementation

verdaccio-s3-storage

📦 AWS S3 storage plugin for verdaccio

Requirements

  • AWS Account
  • Verdaccio server (>3.0) (see below)
npm install -g verdaccio@beta

This plugin is not supported in the version 2.x

Usage

npm install verdaccio-s3-storage

This will pull AWS credentials from your environment.

In your verdaccio config, configure

# necessary (see https://github.com/verdaccio/verdaccio/issues/673)
storage: ./storage

store:
  s3-storage:
    bucket: your-s3-bucket
    keyPrefix: some-prefix # optional, has the effect of nesting all files in a subdirectory
    region: us-west-2 # optional, will use aws s3's default behavior if not specified
    endpoint: https://{service}.{region}.amazonaws.com # optional, will use aws s3's default behavior if not specified
    s3ForcePathStyle: false # optional, will use path style URLs for S3 objects
    accessKeyId: your-access-key-id # optional, aws accessKeyId for private S3 bucket
    secretAccessKey: your-secret-access-key # optional, aws secretAccessKey for private S3 bucket

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free