2.0.0 • Published 4 years ago

commonform-get-editions v2.0.0

Weekly downloads
4
License
BlueOak-1.0.0
Repository
github
Last release
4 years ago
var assert = require('assert')
var getEditions = require('commonform-get-editions')

getEditions(
  'commonform.org', // repository
  'kemitchell', // publisher
  'test', // project
  function (error, editions) {
    assert.ifError(error)
    assert.deepStrictEqual(editions, ['1e'])
  }
)

getEditions(
  'commonform.org',
  'test',
  'nonexistent',
  function (error, editions) {
    assert.ifError(error)
    assert(editions === false)
  }
)