code: function replaceTildes(comp, loose) {
    return comp.trim().split(/\s+/).map(function(comp) {
      return replaceTilde(comp, loose);
    }).join(' ');
  }
docs: ~, ~> --> * (any, kinda silly) ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0