README
download fully resolved sustainability data
JavaScript:
var getSustainability = require('get-sustainability')
var assert = require('assert')
getSustainability({
uri: 'https://raw.githubusercontent.com/kemitchell/get-sustainability.js/master/sustainability.json'
}, function (error, data) {
assert.ifError(error)
assert.strictEqual(
data.project,
'https://github.com/kemitchell/get-sustainability.json'
)
assert.strictEqual(
data.contributors[0].name,
'Kyle E. Mitchell'
)
})
Command Line:
$ npx get-sustainability "$URI"