{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/url-mapper/issues/15","labels_url":"https://api.github.com/repos/christianalfoni/url-mapper/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/url-mapper/issues/15/comments","events_url":"https://api.github.com/repos/christianalfoni/url-mapper/issues/15/events","html_url":"https://github.com/christianalfoni/url-mapper/issues/15","id":116532893,"number":15,"title":"suggested urlMapper api","user":{"login":"Guria","id":36270,"avatar_url":"https://avatars.githubusercontent.com/u/36270?v=3","gravatar_id":"","url":"https://api.github.com/users/Guria","html_url":"https://github.com/Guria","followers_url":"https://api.github.com/users/Guria/followers","following_url":"https://api.github.com/users/Guria/following{/other_user}","gists_url":"https://api.github.com/users/Guria/gists{/gist_id}","starred_url":"https://api.github.com/users/Guria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guria/subscriptions","organizations_url":"https://api.github.com/users/Guria/orgs","repos_url":"https://api.github.com/users/Guria/repos","events_url":"https://api.github.com/users/Guria/events{/privacy}","received_events_url":"https://api.github.com/users/Guria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":54,"created_at":"2015-11-12T11:39:36Z","updated_at":"2015-11-13T13:43:08Z","closed_at":null,"body":"```js\r\nurlMapper.parse('/bar?bar=baz#hash', '/:foo'); // => { params: { foo: 'bar' }, query: { bar: 'baz' }, hash: 'hash' }\r\nurlMapper.stringify('/:foo', { params: { foo: 'bar' }, query: { bar: 'baz' }, hash: 'hash' }); // => '/bar?bar=baz#hash'\r\nurlMapper.map('/bar?bar=baz#hash', routes, function(match, values){\r\n  match({ route: values })\r\n  return 'some return value';\r\n}); // => 'some return value'\r\nurlMapper.map('/bar?bar=baz#hash', routes); // => { match, values }\r\n\r\n```\r\nI have plans to implement this api for next version of lib. Any suggestions?\r\n"},"comment":{"url":"https://api.github.com/repos/christianalfoni/url-mapper/issues/comments/156433905","html_url":"https://github.com/christianalfoni/url-mapper/issues/15#issuecomment-156433905","issue_url":"https://api.github.com/repos/christianalfoni/url-mapper/issues/15","id":156433905,"user":{"login":"Guria","id":36270,"avatar_url":"https://avatars.githubusercontent.com/u/36270?v=3","gravatar_id":"","url":"https://api.github.com/users/Guria","html_url":"https://github.com/Guria","followers_url":"https://api.github.com/users/Guria/followers","following_url":"https://api.github.com/users/Guria/following{/other_user}","gists_url":"https://api.github.com/users/Guria/gists{/gist_id}","starred_url":"https://api.github.com/users/Guria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guria/subscriptions","organizations_url":"https://api.github.com/users/Guria/orgs","repos_url":"https://api.github.com/users/Guria/repos","events_url":"https://api.github.com/users/Guria/events{/privacy}","received_events_url":"https://api.github.com/users/Guria/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T13:43:08Z","updated_at":"2015-11-13T13:43:08Z","body":"just do `npm i vjeux/URLON` and try it in node REPL"}}