pushfile v3.0.2
pushfile
A node.js command line application that pushes a file to S3 and gives you a URL. Files are public by default.
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.extTo create a unique file name, you can use the -u flag:
$ pushfile -u /path/to/file.extExample
$ pushfile cat.jpg
____ _ _____ _ _ _
| _ \ _ _ ___ | |__ | ___| (_) | | ___ | |
| |_) | | | | | / __| | '_ \ | |_ | | | | / _ \ | |
| __/ | |_| | \__ \ | | | | | _| | | | | | __/ |_|
|_| \__,_| |___/ |_| |_| |_| |_| |_| \___| (_)
File is available at https://s3.amazonaws.com/i.jfin.us/MzgYBxMBbwSjywx9QKaRFOxYoDWbxkiyGmP.jpgDevelopment
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 developThis 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
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
10 years ago
11 years ago
11 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago