lib/version.js
function isScm (version) {
  var scmPrefixes = ['git:', 'git+ssh:', 'https:', 'git+https:']
  var blacklisted = scmPrefixes.filter(function (prefix) {
    return version.indexOf(prefix) === 0
  })
  return !!blacklisted.length
}
function isScm (version) {
  var scmPrefixes = ['git:', 'git+ssh:', 'https:', 'git+https:']
  var blacklisted = scmPrefixes.filter(function (prefix) {
    return version.indexOf(prefix) === 0
  })
  return !!blacklisted.length
}
function isScm ( version ) { var scmPrefixes = [ 'git:' , 'git+ssh:' , 'https:' , 'git+https:' ] var blacklisted = scmPrefixes . filter ( function ( prefix ) { return version . indexOf ( prefix ) === 0 } ) return ! ! blacklisted . length }
Determine if a version is a SCM URL or not.
@param {String} version
@return {Boolean}
Determine if a version is a SCM URL or not .