Neo4jRestful
functionNeo4jRestful()
Constructor
var Neo4jRestful = function Neo4jRestful(url, options) {
var self = this;
var urlPattern = /^(http(s)*)\:\/\/((.+?)\:(.+?)\@)*(.+?)(\:([0-9]+)?)\/(.+)*$/i;
var urlMatches = null;
if (typeof url === 'undefined') {
// use global
url = urlOrOptions;
}
if (typeof options !== 'object') {
options = (typeof url === 'object') ? url : {};
}
if (typeof url === 'string') {
options.url = url;
}
if (typeof options.url === 'string') {
// check url
// ensure one trailing slash
options.url = options.url.replace(/\