@mapbox/s3print

1.1.0 • Public • Published

s3print

Print the contents of a file on S3 to stdout

Install

$ npm install -g @mapbox/s3print

Configuration

Provide S3 credentials through any means supported by the AWS JS SDK. If the file is publicly accessible, you do not need to provide any credentials. If you use the --prefix option you'll need permission to ListBucket in the appropriate bucket.

Usage

$ s3print s3://s3print-test/test-file
# Prints "Hello world!"

$ s3print --prefix s3://s3print-test/
# Lists object under the given prefix and prints them all

Alternative

A similar functionality is delivered by the aws-cli as follows:

$ aws s3 cp s3://s3print-test/test-file -
# Prints "Hello world!"

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/s3print

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user