{"action":"opened","issue":{"url":"https://api.github.com/repos/sindresorhus/normalize-url/issues/4","labels_url":"https://api.github.com/repos/sindresorhus/normalize-url/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/normalize-url/issues/4/comments","events_url":"https://api.github.com/repos/sindresorhus/normalize-url/issues/4/events","html_url":"https://github.com/sindresorhus/normalize-url/issues/4","id":60282374,"number":4,"title":"Make protocol-relative URLs & www trimming optional?","user":{"login":"ben-eb","id":1282980,"avatar_url":"https://avatars.githubusercontent.com/u/1282980?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-eb","html_url":"https://github.com/ben-eb","followers_url":"https://api.github.com/users/ben-eb/followers","following_url":"https://api.github.com/users/ben-eb/following{/other_user}","gists_url":"https://api.github.com/users/ben-eb/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-eb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-eb/subscriptions","organizations_url":"https://api.github.com/users/ben-eb/orgs","repos_url":"https://api.github.com/users/ben-eb/repos","events_url":"https://api.github.com/users/ben-eb/events{/privacy}","received_events_url":"https://api.github.com/users/ben-eb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-08T23:23:05Z","updated_at":"2015-03-08T23:23:05Z","closed_at":null,"body":"Would you be open to supporting an options object that could ignore these parameters?\r\n\r\n```js\r\nvar url = '//www.domain.com/example.png';\r\nconsole.log(normalize(url, { keepProtocol: true });\r\n// => //domain.com/example.png\r\n```\r\n\r\n```js\r\nvar url = '//www.domain.com/example.png';\r\nconsole.log(normalize(url, { keepWww: true });\r\n// => http://www.domain.com/example.png\r\n```\r\n\r\nI'd like to use this module (with the PR I submitted) to normalise URLs, but I don't want to change their semantics. I'm happy to send a PR for this if you think its a good addition."}}