function main(input) {
  try {
    input.text = input.text.replace(/0[01]0[1-6][0-9a-f]+/g, convertHex);
  } catch (err) {
    input.postError(err);
    return;
  }
}
{
    "api":1,
    "name":"Well-Known Binary to Text",
    "description":"Converts your hex encoded WKB (any endian) to WKB, wkb2wkt",
    "author":"Mikael Brassman (Twitter: @spoike)",
    "icon":"globe",
    "tags":"wkb,convert,wkt,binary,hex,wkb2wkt"
  }