A simple angular service that wraps x2js lib