CommonJS module for parsing URLs according to the X-Callback-URL standard.
Just as usefull for parsing URLs that do not have x-callback-url
as host.
Based on the non-CommonJS version by Greg Pierce.
Learn by example:
var XCallbackURL = require('XCallbackURL');
var URL = XCallbackURL.parse('myscheme://action?key=value');
// Logs 'action'
Ti.API.debug(URL.action());
// Logs 'value'
Ti.API.debug(URL.param('key'));
// Logs '{key:value}'
Ti.API.debug(JSON.stringify(URL.params()));