function main(input) {
  let lines = input.fullText.split("\n");
  let o = lines.map(c => betterColor(c));
  input.fullText = o.join("\n");
}
{
    "api": 1,
    "name": "Contrasting Color",
    "description": "Determine whether black or white contrasts better with the given color(s) (one per line).",
    "author": "Sunny Walker",
    "icon": "color-wheel",
    "tags": "contrast,color,wcag"
}