export class Dependency { name : string ; version : string ; repository : string ; license : string ; devDependency : boolean ; public static compare ( a , b ) { let compare ; compare = a . name . localeCompare ( b . name ) ; if ( compare !== 0 ) { return compare ; } compare = a . version . localeCompare ( b . version ) ; return compare ; } constructor ( name , version , repository , license , devDependency = false ) { this . name = name ; this . version = version ; this . repository = repository ; this . license = license ; this . devDependency = devDependency ; } }