
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
An advanced url parser supporting git urls too.
For low-level path parsing, check out parse-path. This very module is designed to parse urls.
# Using npm
npm install --save parse-url
# Using yarn
yarn add parse-url
// Dependencies
import parseUrl from "parse-url";
console.log(parseUrl("http://ionicabizau.net/blog"))
// {
// protocols: [ 'http' ],
// protocol: 'http',
// port: '',
// resource: 'ionicabizau.net',
// user: '',
// password: '',
// pathname: '/blog',
// hash: '',
// search: '',
// href: 'http://ionicabizau.net/blog',
// query: {}
// }
console.log(parseUrl("http://domain.com/path/name?foo=bar&bar=42#some-hash"))
// {
// protocols: [ 'http' ],
// protocol: 'http',
// port: '',
// resource: 'domain.com',
// user: '',
// password: '',
// pathname: '/path/name',
// hash: 'some-hash',
// search: 'foo=bar&bar=42',
// href: 'http://domain.com/path/name?foo=bar&bar=42#some-hash',
// query: { foo: 'bar', bar: '42' }
// }
// If you want to parse fancy Git urls, turn off the automatic url normalization
console.log(parseUrl("git+ssh://git@host.xz/path/name.git", false))
// {
// protocols: [ 'git', 'ssh' ],
// protocol: 'git',
// port: '',
// resource: 'host.xz',
// user: 'git',
// password: '',
// pathname: '/path/name.git',
// hash: '',
// search: '',
// href: 'git+ssh://git@host.xz/path/name.git',
// query: {}
// }
console.log(parseUrl("git@github.com:IonicaBizau/git-stats.git", false))
// {
// protocols: [ 'ssh' ],
// protocol: 'ssh',
// port: '',
// resource: 'github.com',
// user: 'git',
// password: '',
// pathname: '/IonicaBizau/git-stats.git',
// hash: '',
// search: '',
// href: 'git@github.com:IonicaBizau/git-stats.git',
// query: {}
// }
parseUrl(url, normalize)Parses the input url.
Note: This throws if invalid urls are provided.
url: The input url.normalize: Whether to normalize the url or not. Default is false. If true, the url will be normalized. If an object,
it will be the options object sent to
normalize-url. For
SSH urls, normalize won't work.protocols (Array): An array with the url protocols (usually it has one element).protocol (String): The first protocol, "ssh" (if the url is a ssh url) or "file".port (String): The domain port.resource (String): The url domain (including subdomains).host (String): The fully qualified domain name of a network host, or its IP address.user (String): The authentication user (usually for ssh urls).pathname (String): The url pathname.hash (String): The url hash.search (String): The url querystring value.href (String): The input url.query (Object): The url querystring, parsed as object.parse_failed (Boolean): Whether the parsing failed or not.There are few ways to get help:
Have an idea? Found a bug? See how to contribute.
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
Starring and sharing the projects you like :rocket:
—I love books! I will remember you after years if you buy me one. :grin: :book:
—You can make one-time donations via PayPal. I'll probably buy a
coffee tea. :tea:
—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
Bitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6

Thanks! :heart:
If you are using this library in one of your projects, add it in this list. :sparkles:
@_nomtek/react-native-shimmer-animation@aabelmann/ui-layer@abdoalghoul/react-native-emoji-keyboard@abhinavoneuipoc/stencil-test@adatechnology/react-native-android-getnet-pos@adembacaj/react-native-google-pay@ahmed_shaban123/react-native-currencyinput@ali5049/react-native-buttons@altpebush/primevue@amirdiafi/react-native-ios-haptics@amiruldev/wajs@angga30prabu/wa-modified@apardellass/react-native-audio-stream@appconda/app@appconda/next@aruntestpayment/react-native-payu-payment@aviinash_jha/react-native-test_multiply@azalpacir/react-native-dhp-printer@brantalikp/rn-resize@buganto/client@con-test/react-native-concent-common@contentz/build@corelmax/react-native-my2c2p-sdk@cs6/react-native-test-native-view-library@damruravihara/react-native-testing-package@dataparty/api@enkeledi/react-native-week-month-date-picker@extrieve_technologies/quickcapture_react_native@felipesimmi/react-native-datalogic-module@foundernetes/machines@foundernetes/metal-debian@geeky-apo/react-native-advanced-clipboard@happy-gastro/react-native-printer-module@hawkingnetwork/react-native-tab-view@hbglobal/react-native-actions-shortcuts@hemith/react-native-tnk@hieuquang2212/form@hstech/utils@idas1/ui-component-lib@jfilipe-sparta/react-native-module_2@jimengio/mocked-proxy@jprustv/sulla-hotfix@kgit/readability@kgit/readbility@klevn/solid-router@kriblet/wa-automate@labiebhn_/react-native-multiplier@lakhlaifi/semantic-gitlab@lakutata-module/service@lehuyaa/my-assets@logisticinfotech/react-native-geocoding-reversegeocoding@mergulhao/wa-automate@mockswitch/cli@navabi/react-native-ssl-pinning@ndla/source-map-resolver@notnuzzel/crawl@oiti/rn-liveness2d@open-wa/wa-automate@openshift-assisted/ui-lib@orgbluetooth/react-native-arunpayupayment@orgbluetooth/react-native-payupayment@pagopa/io-react-native-wallet@parallelnft/web3modal@phpboyscout/semantic-release-gitlab@phuocnb/semrelease-gitlab@pocket-tools/image-utils@podpodium/common@ponchodien/react-native-printer-imin@positionex/position-sdk@praella/localisationist@procivis/one-react-native-components@qiwi/sourcecrumbs@react-18-pdf/root@react-native-ui-design/button@roq/ui-react@roshub/api@saad27/react-native-bottom-tab-tour@safely-project/safely-ts@sephriot/react-native-persistable-uri@sidghimire/react-native-mapbox-navigation@sridharetikala/react-native-rn-lib-custom-components@status-im/react-native-transparent-video@syedt/hellosdk@taingo97/react-native-awesome-module@taingo97/react-native-bluetooth-xprinter@taingo97/react-native-expo-key-rsa-kt@taingo97/react-native-expo-rsa@taingo97/react-native-generate-key-rsa@taingo97/react-native-key-rsa@taingo97/react-native-print-xprinter@taingo97/react-native-printer-imin@taingo97/react-native-rsa@taingo97/react-native-rsa-expo@taingo97/react-native-sunmi-printer@taingo97/react-native-telpo-printer@teles1-semantic-release/gitlab@thinxviewx/core-rn@tlgeo/react-native-gdal@tomw2w/my-nuxt-layer@visioglobe/react-native-visioglobe@wecraftapps/react-native-use-keyboard@yplabs-ltd/react-native-detector@zotasys/nativeacttttagent-get-agentanakketigaanaklanangteaanakwadonteaangularvezbaapaas-trackapi-reach-react-native-fixarchlibraryarifbudixzastra-ufo-sdkawesome-module-kdba-js-cookie-bannerbeggbilibili2localbiometric-stbirken-react-native-community-image-editorblitzzzbuild-plugin-ssrcandlelabssdkcheckbox-componentcli-live-tutorialconnex-kakilangconnex_ram00nezdemo-test-scrndesign-system-trial-milyasbpadogandev-simple-toastegg-muc-custom-loaderexpo-renavigateeyereasonerfawaterak-online-paymentfawatrak-online-paymentfixed_form_builderfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafmslframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgamification-integration-newgaurav-react-native-loopgenz-native-elementsgerimismalamseninget-tarball-cligf-roq-ui-reactgh-monoproject-cligitlab-backup-util-harduinogr-roq-ui-reactgraphmilkerhologithong1-utilshui-plugin-wssiiif-manifest-editorimnextgen-academy-updateripsamveljamuskalimjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjrennsoh88-react-native-scroll-indicatorjy-actkhaled-salem-custom-componentsknex-paginate-transactionl2forlernalunatic-suggesterluojia-cli-devmangudinlagirajinmichael-stunmiguelcostero-ng2-toastymy-package-wamonative-apple-loginnative-date-picker-modulenative-google-loginnative-kakao-loginnative-modal-damage-vehiclenew-awesome-4321njs-wa-autonormalize-idnpm_one_12_34_1_npm_one_1_2_3npm_one_2_2npm_qwertynuxtpaginationsoctopulseori-bot-react-nativepasbeaucoupmoinsravepatepangdeuipayutestingpileuleuyanteapnm-yph-react-native-custom-componentsproject-wajs-dvpyreswap-sdkraact-native-arunramya151reac-native-arun-ramya-testreact-native-adarsh_react_native_video_playerreact-native-android-native-viewreact-native-android-video-player-viewreact-native-android-viewreact-native-animate-textreact-native-app-bubblereact-native-app-integrity-checksumreact-native-arps-authorize-netreact-native-arun-ramya-testreact-native-arunjeyam1987react-native-arunmeena1987react-native-arunramya151react-native-auth-service-clientreact-native-aventonfacetec-aventonreact-native-awesome-android-123react-native-awesome-android-123-zeotapreact-native-awesome-module-dharmeshreact-native-awesome-module-latestreact-native-awesome-module-tworeact-native-azure-communication-servicesreact-native-badge-controlreact-native-basic-appreact-native-basic-screenreact-native-biometric-authenticatereact-native-bleccs-componentsreact-native-bluetooth-device-detectreact-native-bottom-tab-designsreact-native-bridge-packagereact-native-bubble-chartreact-native-build-vesion-getterreact-native-chat-circle-sdkreact-native-check-componentreact-native-chenaarreact-native-components-designreact-native-conekta-card-tokenizerreact-native-contact-listreact-native-cplusreact-native-create-video-thumbnailreact-native-ctp-odpreact-native-custom-image-carouselreact-native-custom-poccomponentreact-native-custom-poccomponent-nextreact-native-custome-component-demoreact-native-datacapture-corereact-native-dff-components-demoreact-native-dhp-printerreact-native-dimensions-layoutreact-native-dsphoto-modulereact-native-dummy-viewreact-native-escapereact-native-fedlight-dsmreact-native-geo-locatorreact-native-ghn-ekycreact-native-ideo-rn-notificationsreact-native-innity-2react-native-innity-remasterreact-native-input-libraryreact-native-is7react-native-jsi-device-inforeact-native-kakao-mapsreact-native-klarify-iosreact-native-klarify-uireact-native-klcreact-native-lazp-device-inforeact-native-lib-test-rn-1react-native-library-testing-422522react-native-line-login-androidreact-native-login-demo-testreact-native-lowlatencyreact-native-loyalty-platformsreact-native-manh-testreact-native-manual-ios-sdkreact-native-modal-progress-barreact-native-module-argereact-native-module-for-testingreact-native-moosa-lib-for-testreact-native-multi-bluetooth-printerreact-native-multiplier-altroncosoreact-native-multiplier-componentreact-native-multiplier-demoreact-native-multiplier2react-native-multiplyreact-native-multiply-componentreact-native-multiselectorreact-native-mun-kitreact-native-my-first-try-arun-ramyareact-native-native-audio-enginereact-native-native-ios-test1react-native-nativewindreact-native-nghia-shareringreact-native-nice-learningreact-native-nyx-printerreact-native-offline-noticereact-native-onrampreact-native-opusreact-native-otp-custom-libraryreact-native-paynow-generatorreact-native-payu-paymentreact-native-payu-payment-testingreact-native-plugpag-wrapperreact-native-progress-arrowreact-native-pulsator-nativereact-native-rabbitmq-allreact-native-radio-bic-group-libreact-native-reanimated-sortable-listreact-native-recent-framework-updatereact-native-remote-updatereact-native-responsive-helperreact-native-responsive-sizereact-native-return-usb-datareact-native-rn-appreact-native-rn-common-components-examplereact-native-rn-icons-libraryreact-native-rn-lib-custom-componentsreact-native-rn-tolkaplayerreact-native-rn-tolkaplayer-dharmeshreact-native-rom-componentsreact-native-rtn-ips-poslin-testreact-native-s-airlinesreact-native-sandycomponentreact-native-savczuk-feature-libraryreact-native-sayhello-modulereact-native-screen-idle-timerreact-native-scroll-tab-to-indexreact-native-shared-gesturereact-native-sharing-intentreact-native-sherpa-onnx-offline-ttsreact-native-simple-timelinereact-native-sp-test-commonreact-native-sunmi-printer-hkreact-native-superapis-transbank-posreact-native-syan-photo-pickerreact-native-teads-sdk-modulereact-native-tejab41097-sample-libraryreact-native-teknoctrl-componentsreact-native-test-comlibraryreact-native-test-module-hhhreact-native-test-multiplier-libraryreact-native-test-tooltipreact-native-test-viewreact-native-ticker-tapereact-native-tilt-blereact-native-tonesreact-native-transtracker-libraryreact-native-uart-connectionreact-native-ui-components-libraryreact-native-uvc-camera-androidreact-native-vanguard-sdkreact-native-version-appreact-native-volume-phisicalreact-native-withframework-checkreact-native-wtfreact-native-xprinter-thermal-blereact-native-ytximkitreactnativelyreat-native-multiplierkprrefinejs-reporn-adyen-dropinrn-check-btnrn-circular-chartrn-counter-demorn-currency-formatterrn-session-multiplier-demorn-tm-notifyrn_unique_device_idrnttlockrobots-agentrocompscout-chatbot-widgetsedanbosoksemantic-release-gitmoji-actionsmart_one_connectsoajs.repositoriessourcecrumbssungrow_tcutehmusimhujantest-library-123test-zeo-collecttools_may_24vantiq-reactveem-web-sdkverify-aws-sns-signaturevision-camera-base64-resizedvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvue-cli-plugin-ice-buildervue-cli-plugin-ut-builderwa-automatewander-cliwarp-apiwifi_configuration_packagewinx-form-winxworkpadxbuilder-formsxl-git-upyangtao-jsyarn-react-hook-formyoss-apizzzxxxyyy321123The url-parse package offers similar functionality to parse-url, allowing for the parsing of URLs into components. It also provides the ability to resolve relative URLs against an absolute base URL, which is a feature not present in parse-url.
While qs is not a direct alternative to parse-url, it provides robust query string parsing and stringifying capabilities. It can be used in conjunction with other URL parsing libraries to handle the query string part of URLs more extensively than parse-url.
URI.js is a URL manipulation library that provides a fluent API for building, parsing, and manipulating URLs. It offers more features than parse-url, such as URL normalization, resolution of relative paths, and support for punycode and IPv6.
FAQs
An advanced url parser supporting git urls too.
The npm package parse-url receives a total of 3,681,212 weekly downloads. As such, parse-url popularity was classified as popular.
We found that parse-url demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.