Skip to content

commonform/commonform-get-versions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

var assert = require('assert')
var getVersions = require('commonform-get-versions')

getVersions(
  'commonform.org', // repository
  'kemitchell', // publisher
  'test', // project
  function (error, versions) {
    assert.ifError(error)
    assert.deepStrictEqual(versions, ['1.0.0'])
  }
)

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published