Giter Site home page Giter Site logo

gyumeijie / put Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 10 KB

Pictures Uploading Tool, mainly for GitHub repository

Home Page: https://www.npmjs.com/package/@gyumeijie/put

JavaScript 100.00%
image-upload image-uploader picture-upload github npm-package cli-tool github-repository github-repos

put's Introduction

put

pictures uploading tool

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

$ npm install @gyumeijie/put

Usage

$ put ./YuMeiJie.jpeg

Config

Put the following content to the ~/.putrc file

{
  "github": {
    "branch": "branch_name",
    "owner": "user_name",
    "path": "path",
    "repo": "repo",
    "token": "personal_access_token"
  }
}

And take https://github.com/Gyumeijie/put for examples:

{
  "github": {
    "branch": "master",
    "owner": "Gyumeijie",
    "path": "assets",
    "repo": "put",
    "token": "06aed0df73r8ed1t2914d08da776148d2f350059"
  }
}

With all things ready, running the following command:

$ 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.

License

MIT © Gyumeijie

Related works

put's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.