An open API service indexing awesome lists of open source software.

https://github.com/rwson/urlparser

an urlParser library
https://github.com/rwson/urlparser

Last synced: 3 months ago
JSON representation

an urlParser library

Awesome Lists containing this project

README

          

## UrlParser

Url解析库

#### Demo



var parser = UrlParser({
cfg: "http://abc.com/:id/:name",
url: "http://abc.com/id/name?id=123&name=345"
});

parser.parse();

/**
result:

{
pathParam: {
id: "id",
name: "name"
},
quertString: {
id: "123",
name: "345"
}
}

**/