2.0.0 • Published 5 years ago

get-sustainability v2.0.0

Weekly downloads
3
License
BlueOak-1.0.0
Repository
github
Last release
5 years ago

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"