Got a blob from github
$ npm install --save got-github-blob
const gotBlog = require('got-github-blob');
gotBlog('https://raw.githubusercontent.com/ragingwind/mobile-chromeapp-starter-kit/patch/app.js').then(() => {
//=> save to ./app.js
});
gotBlog('https://raw.githubusercontent.com/ragingwind/mobile-chromeapp-starter-kit/patch/gulpfile.js', './dist').then(() => {
//=> save to ./dist/gulpfile.js
});
gotBlog('https://github.com/ragingwind/mobile-chromeapp-starter-kit/blob/master/src/platform/config.xml').then(() => {
//=> save to ./src/platform/config.xml
});
gotBlog('https://github.com/ragingwind/mobile-chromeapp-starter-kit/tree/master/src').catch(err => {
//=> error
});
Type: string
URL of related with github such as github.com and githubusercontent.com
Root path for writing
MIT © ragingwind