Parse and convert GitHub-like search queries in Node.JS