A CORS-friendly webservice (and node module) for fetching app.json file content from GitHub and Bitbucket repos
Download node at nodejs.org and install it, if you haven't already.
npm install app-json-fetcher --savegit clone https://github.com/app-json/app-json-fetcher
npm install
npm startnpm install app-json-fetcher --savevar fetch = require("app-json-fetcher").fetch
// Github shorthand
fetch("github:zeke/slideshow", function(err, manifest) {
console.log(err, manifest)
})
// Bitbucket shorthand
fetch("bitbucket:sikelianos/web-starter-kit", function(err, manifest) {
console.log(err, manifest)
})
// Long URL with branch or commit
fetch("https://github.com/zeke/moby/tree/master", function(err, manifest) {
console.log(err, manifest)
})- https://app-json-fetcher.herokuapp.com/?repository=github:zeke/slideshow
- https://app-json-fetcher.herokuapp.com/?repository=bitbucket:sikelianos/web-starter-kit
- https://app-json-fetcher.herokuapp.com/?repository=https://github.com/zeke/slideshow/tree/master/app.json
npm install
npm testMIT
