diff --git a/.github/funding.yml b/.github/funding.yml index 1a630e9..8ec4782 100644 --- a/.github/funding.yml +++ b/.github/funding.yml @@ -1,3 +1,4 @@ github: sindresorhus open_collective: sindresorhus +tidelift: npm/normalize-url custom: https://sindresorhus.com/donate diff --git a/.github/security.md b/.github/security.md new file mode 100644 index 0000000..5358dc5 --- /dev/null +++ b/.github/security.md @@ -0,0 +1,3 @@ +# Security Policy + +To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. diff --git a/readme.md b/readme.md index 3cc353e..4d9e5eb 100644 --- a/readme.md +++ b/readme.md @@ -27,7 +27,7 @@ normalizeUrl('HTTP://xn--xample-hva.com:80/?b=bar&a=foo'); ## API -### normalizeUrl(url, [options]) +### normalizeUrl(url, options?) #### url @@ -37,7 +37,7 @@ URL to normalize. #### options -Type: `Object` +Type: `object` ##### defaultProtocol @@ -219,6 +219,14 @@ normalizeUrl('www.sindresorhus.com?b=two&a=one&c=three', { - [compare-urls](https://github.com/sindresorhus/compare-urls) - Compare URLs by first normalizing them -## License +--- -MIT © [Sindre Sorhus](https://sindresorhus.com) +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+