/**
 * @file The ethtaint user agent string.
 * @module util/useragent
 */

'use strict'

// Imports
const version = require('project-version')

/**
 * The ethtaint user agent string.
 * @static
 */
let userAgent = 'ethtaint'

// Add version
if (version) {
  userAgent += '/' + version
}

// Expose
module.exports = userAgent

/**
 * @file The ethtaint user agent string.
 * @module util/useragent
 */

'use strict'

// Imports
const version = require('project-version')

/**
 * Web address of project repository.
 * @private
 */
const repositoryAddress =
  'https://github.com/jestcrows/ethtaint'

/**
 * The ethtaint user agent string.
 * @static
 */
let userAgent = 'ethtaint'

// Add version
if (version) {
  userAgent += '/' + version
}

// Add repository address
userAgent += ' (+' + repositoryAddress + ')'

// Expose
module.exports = userAgent

Add repository address to user agent
Add repository address to user agent

The Googlebot user agent string uses a plus +
before the information URL in the comment:
>Googlebot/2.1 (+http://www.google.com/bot.html)

Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent

The reason for this is unclear but probably sensible
so I'm following it:
>ethtaint/0.3.0 (+https://github.com/jestcrows/ethtaint)
