pushfile

3.0.2 • Public • Published

pushfile

A node.js command line application that pushes a file to S3 and gives you a URL. Files are public by default.

Tests Dependency Status devDependency Status NPM Version

Installation

To install PushFile, simply run npm install -g pushfile. This will install pushfile globally on your machine.

Create a Config File

To create a config file, just run pushfile --configuration or copy the example config file to your home directory and rename it .pushfile.json.

AWS Credentials

You can go here to get your AWS credentials.

Usage

Once your configuration file is created pushing files to S3 is simple:

$ pushfile /path/to/file.ext

To create a unique file name, you can use the -u flag:

$ pushfile -u /path/to/file.ext

Example

$ pushfile cat.jpg
____                  _       _____   _   _          _
|  _ \   _   _   ___  | |__   |  ___| (_) | |   ___  | |
| |_) | | | | | / __| | '_ \  | |_    | | | |  / _ \ | |
|  __/  | |_| | \__ \ | | | | |  _|   | | | | |  __/ |_|
|_|      \__,_| |___/ |_| |_| |_|     |_| |_|  \___| (_)

File is available at https://s3.amazonaws.com/i.jfin.us/MzgYBxMBbwSjywx9QKaRFOxYoDWbxkiyGmP.jpg

Development

We have added npm-watch to Pushfile to aid in development of this package. To run this code in development mode, simply run the following command:

$ npm run develop

This will generate a nodemon process that will re-run npm run build any time code is changed. To test the changes, you'll need to use the local version of Pushfile. To run that package, run :

$ ./bin/pushfile <COMMAND>

Changelog

See CHANGELOG.md

Dependents (0)

Package Sidebar

Install

npm i pushfile

Weekly Downloads

1

Version

3.0.2

License

MIT

Unpacked Size

12.6 kB

Total Files

6

Last publish

Collaborators

  • joshfinnie