app-json-fetcher

2.1.0 • Public • Published

app-json-fetcher Build Status

A CORS-friendly webservice (and node module) for fetching app.json file content from GitHub and Bitbucket repos

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install app-json-fetcher --save

Run it as a service

git clone https://github.com/app-json/app-json-fetcher
npm install
npm start

Use it programatically

npm install app-json-fetcher --save
var 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)
})

Sample endpoints

Tests

npm install
npm test

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    1
  • 2.0.0
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i app-json-fetcher

Weekly Downloads

1

Version

2.1.0

License

MIT

Last publish

Collaborators

  • zeke