https://github.com/gyumeijie/put
Pictures Uploading Tool, mainly for GitHub repository
https://github.com/gyumeijie/put
cli-tool github github-repos github-repository image-upload image-uploader npm-package picture-upload
Last synced: 9 days ago
JSON representation
Pictures Uploading Tool, mainly for GitHub repository
- Host: GitHub
- URL: https://github.com/gyumeijie/put
- Owner: Gyumeijie
- Created: 2019-05-13T00:36:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T05:25:31.000Z (almost 7 years ago)
- Last Synced: 2025-02-02T06:14:00.682Z (about 1 year ago)
- Topics: cli-tool, github, github-repos, github-repository, image-upload, image-uploader, npm-package, picture-upload
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@gyumeijie/put
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# put [](https://travis-ci.com/Gyumeijie/put)
> **p**ictures **u**ploading **t**ool
**put** allows you uploading pictures assets without downloading the whole repository. This is useful especially the repository to which some assets are put has a big size.
## Install
```bash
$ npm install @gyumeijie/put
```
## Usage
```bash
$ put ./YuMeiJie.jpeg
```
## Config
> Put the following content to the `~/.putrc` file
```json
{
"github": {
"branch": "branch_name",
"owner": "user_name",
"path": "path",
"repo": "repo",
"token": "personal_access_token"
}
}
```
And take `https://github.com/Gyumeijie/put` for examples:
```json
{
"github": {
"branch": "master",
"owner": "Gyumeijie",
"path": "assets",
"repo": "put",
"token": "06aed0df73r8ed1t2914d08da776148d2f350059"
}
}
```
With all things ready, running the following command:
```bash
$ put ./YuMeiJie.jpeg
https://raw.githubusercontent.com/Gyumeijie/put/master/assets/YuMeiJie.jpeg
```
For how to create a **personal access token** to access the `GitHub API`, please visit [here](https://github.com/settings/tokens).
## License
MIT © [Gyumeijie](https://github.com/Gyumeijie)
## Related works
- [wgit](https://github.com/Gyumeijie/wgit)