Gathering detailed insights and metrics for parse-url
Gathering detailed insights and metrics for parse-url
Gathering detailed insights and metrics for parse-url
Gathering detailed insights and metrics for parse-url
@aryzing/superqs
Build and parse URL-safe query strings from arbitrary values
url-parse
Small footprint URL parser that works seamlessly across Node.js and browser environments
git-url-parse
A high level git url parser for common git providers.
@advanced-rest-client/arc-url
A module with logic an UI regions to support URL processing in Advanced REST Client application. It contains a logic to safely parse url with variables, build a URL input, or to enter any arbitrary URL with autosuggestions.
🚀 An advanced url parser supporting git urls too.
npm install parse-url
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
57 Stars
180 Commits
37 Forks
5 Watching
1 Branches
19 Contributors
Updated on 30 Jul 2024
Minified
Minified + Gzipped
JavaScript (94.24%)
TypeScript (5.76%)
Cumulative downloads
Total Downloads
Last day
1.6%
807,270
Compared to previous day
Last week
6%
4,379,344
Compared to previous week
Last month
19.2%
17,743,918
Compared to previous month
Last year
7.3%
185,600,206
Compared to previous year
2
4
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. By default the urls are normalized.
1# Using npm 2npm install --save parse-url 3 4# Using yarn 5yarn add parse-url
1// Dependencies 2import parseUrl from "parse-url"; 3 4console.log(parseUrl("http://ionicabizau.net/blog")) 5// { 6// protocols: [ 'http' ], 7// protocol: 'http', 8// port: '', 9// resource: 'ionicabizau.net', 10// user: '', 11// password: '', 12// pathname: '/blog', 13// hash: '', 14// search: '', 15// href: 'http://ionicabizau.net/blog', 16// query: {} 17// } 18 19console.log(parseUrl("http://domain.com/path/name?foo=bar&bar=42#some-hash")) 20// { 21// protocols: [ 'http' ], 22// protocol: 'http', 23// port: '', 24// resource: 'domain.com', 25// user: '', 26// password: '', 27// pathname: '/path/name', 28// hash: 'some-hash', 29// search: 'foo=bar&bar=42', 30// href: 'http://domain.com/path/name?foo=bar&bar=42#some-hash', 31// query: { foo: 'bar', bar: '42' } 32// } 33 34// If you want to parse fancy Git urls, turn off the automatic url normalization 35console.log(parseUrl("git+ssh://git@host.xz/path/name.git", false)) 36// { 37// protocols: [ 'git', 'ssh' ], 38// protocol: 'git', 39// port: '', 40// resource: 'host.xz', 41// user: 'git', 42// password: '', 43// pathname: '/path/name.git', 44// hash: '', 45// search: '', 46// href: 'git+ssh://git@host.xz/path/name.git', 47// query: {} 48// } 49 50console.log(parseUrl("git@github.com:IonicaBizau/git-stats.git", false)) 51// { 52// protocols: [ 'ssh' ], 53// protocol: 'ssh', 54// port: '', 55// resource: 'github.com', 56// user: 'git', 57// password: '', 58// pathname: '/IonicaBizau/git-stats.git', 59// hash: '', 60// search: '', 61// href: 'git@github.com:IonicaBizau/git-stats.git', 62// query: {} 63// }
There are few ways to get help:
interopDefaultLegacy()
#PURE
parseUrl(url, normalize)
Parses the input url.
Note: This throws if invalid urls are provided.
String url
: The input url.
Boolean|Object 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
(null|Number): 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.([a-zA-Z_][a-zA-Z0-9_-]{0,31}) Try to match the user ([\w.-@]+) Match the host/resource (([~,.\w,-,_,/,\s]|%[0-9A-Fa-f]{2})+?(?:.git|/)?) Match the path, allowing spaces/white
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
@ali5049/react-native-buttons
@amirdiafi/react-native-ios-haptics
@angga30prabu/wa-modified
@apardellass/react-native-audio-stream
@aysea/react-native-ui-library
@azalpacir/react-native-dhp-printer
@brantalikp/rn-resize
@buganto/client
@con-test/react-native-concent-common
@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
@foundernetes/machines
@foundernetes/metal-debian
@geeky-apo/react-native-advanced-clipboard
@hbglobal/react-native-actions-shortcuts
@heycharge/heycharge-react-native-sdk
@hieuquang2212/form
@hstech/utils
@idas1/ui-component-lib
@jfilipe-sparta/react-native-module_2
@jimengio/mocked-proxy
@klevn/solid-router
@lakutata-module/service
@mockswitch/cli
@ndla/source-map-resolver
@npm_fluentco/adflow-react-native-sdk
@oiti/rn-liveness2d
@open-wa/wa-automate
@phpboyscout/semantic-release-gitlab
@phuocnb/semrelease-gitlab
@positionex/position-sdk
@praella/localisationist
@qiwi/sourcecrumbs
@react-native-ui-design/button
@roq/ui-react
@roshub/api
@saad27/react-native-bottom-tab-tour
@semantic-release/gitlab
@sephriot/react-native-persistable-uri
@sidghimire/react-native-mapbox-navigation
@taingo97/react-native-awesome-module
@taingo97/react-native-bluetooth-xprinter
@taingo97/react-native-expo-key-rsa-kt
@taingo97/react-native-generate-key-rsa
@taingo97/react-native-key-rsa
@taingo97/react-native-print-xprinter
@taingo97/react-native-rsa-expo
@taingo97/react-native-sunmi-printer
@taingo97/react-native-telpo-printer
@teles1-semantic-release/gitlab
@thinxviewx/core-rn
@tomw2w/my-nuxt-layer
@valifysolutions/react-native-vidvliveness
@wecraftapps/react-native-use-keyboard
agent-get-agent
angularvezba
apaas-track
api-reach-react-native-fix
archlibrary
arifbudixz
astra-ufo-sdk
awesome-module-kd
ba-js-cookie-banner
begg
bilibili2local
biometric-st
birken-react-native-community-image-editor
blitzzz
build-plugin-ssr
candlelabssdk
checkbox-component
cli-live-tutorial
delta-screen
demo-test-scrn
deploy-versioning
design-system-trial-milyasbpa
dogandev-simple-toast
egg-muc-custom-loader
electron-info
eval-spider
expo-renavigate
fawaterak-online-payment
fawatrak-online-payment
fixed_form_builder
fluent.adflow.reactnativesdk
fluent.adflow.reactnativesdk-alpha
fmsl
framework_test_library_sixdee
framework_test_library_sixdee_new
framework_test_library_sixdee_new_new
fuge-runner
gamification-integration-new
gaurav-react-native-loop
generator-bootstrap-boilerplate-template
genz-native-elements
gh-monoproject-cli
git-up
gitlab-backup-util-harduino
griffin-ui-library
heroku-wp-environment-sync
hologit
hong1-utils
hubot-will-it-connect
hui-plugin-wss
ipsamvel
jamuskalim
jordy-frijters-test-lib
kakapo
khaled-salem-custom-components
luojia-cli-dev
markdownalint-cli2
michael-stun
microbe.js
miguelcostero-ng2-toasty
native-apple-login
native-date-picker-module
native-google-login
native-kakao-login
native-modal-damage-vehicle
native-zip
ndla-source-map-resolver
new-awesome-4321
njs-wa-auto
normalize-id
normalize-ssh
npm_one_12_34_1_
npm_one_1_2_3
npm_one_2_2
npm_qwerty
parse-db-uri
pasbeaucoupmoinsrave
payutesting
pnm-yph-react-native-custom-components
project-wajs-dv
pyreswap-sdk
quickcapture_react_native
raact-native-arunramya151
reac-native-arun-ramya-test
react-native-addition
react-native-android-video-player-view
react-native-animate-text
react-native-app-bubble
react-native-app-integrity-checksum
react-native-arps-authorize-net
react-native-arun-ramya-test
react-native-arunjeyam1987
react-native-arunmeena1987
react-native-arunramya151
react-native-auth-service-client
react-native-aventonfacetec-aventon
react-native-awesome-android-123
react-native-awesome-android-123-zeotap
react-native-awesome-module-latest
react-native-awesome-module-two
react-native-azure-communication-services
react-native-badge-control
react-native-basic-app
react-native-basic-screen
react-native-biometric-authenticate
react-native-bleccs-components
react-native-bluetooth-device-detect
react-native-bridge-package
react-native-bubble-chart
react-native-build-vesion-getter
react-native-check-component
react-native-chenaar
react-native-components-design
react-native-conekta-card-tokenizer
react-native-contact-list
react-native-cplus
react-native-create-video-thumbnail
react-native-ctp-odp
react-native-dhp-printer
react-native-dimensions-layout
react-native-dsphoto-module
react-native-fedlight-dsm
react-native-flyy
react-native-get-countries
react-native-ghn-ekyc
react-native-innity-2
react-native-innity-remaster
react-native-input-library
react-native-is7
react-native-jsi-device-info
react-native-kakao-maps
react-native-klarify-ios
react-native-klarify-ui
react-native-klc
react-native-lib-test-rn-1
react-native-library-testing-422522
react-native-line-login-android
react-native-login-demo-test
react-native-lowlatency
react-native-loyalty-platforms
react-native-manh-test
react-native-manual-ios-sdk
react-native-modal-progress-bar
react-native-module-arge
react-native-module-for-testing
react-native-multiplier-altroncoso
react-native-multiplier-component
react-native-multiplier-demo
react-native-multiplier2
react-native-multiply
react-native-multiply-component
react-native-multiselector
react-native-mun-kit
react-native-my-first-try-arun-ramya
react-native-native-audio-engine
react-native-native-ios-test1
react-native-nativewind
react-native-nghia-sharering
react-native-nice-learning
react-native-omental-framework
react-native-onramp
react-native-payu-payment-testing
react-native-plugpag-wrapper
react-native-progress-arrow
react-native-pulsator-native
react-native-rabbitmq-all
react-native-radio-bic-group-lib
react-native-reanimated-sortable-list
react-native-recent-framework-update
react-native-responsive-helper
react-native-responsive-size
react-native-return-usb-data
react-native-rn-app
react-native-rn-icons-library
react-native-rom-components
react-native-rtn-ips-poslin-test
react-native-sandycomponent
react-native-savczuk-feature-library
react-native-sayhello-module
react-native-screen-idle-timer
react-native-scroll-tab-to-index
react-native-shared-gesture
react-native-simple-timeline
react-native-sixdee_test_lib
react-native-sp-test-common
react-native-teknoctrl-components
react-native-test-comlibrary
react-native-test-module-hhh
react-native-test-view
react-native-ticker-tape
react-native-tone-framework
react-native-transtracker-library
react-native-ui-components-library
react-native-uvc-camera-android
react-native-version-app
react-native-volume-phisical
react-native-withframework-check
react-native-wtf
react-native-xiaomi-permissions
react-native-xprinter-thermal-ble
react-native-ytximkit
reactnatively
reat-native-multiplierkpr
refinejs-repo
rn-adyen-dropin
rn-agora-ios-m
rn-circular-chart
rn-counter-demo
rn-session-multiplier-demo
rn-tm-notify
rn_unique_device_id
robots-agent
rocomp
smart_one_connect
soajs.repositories
sourcecrumbs
stun
sushi-sdk-ftm
test-haptik-lib
test-zeo-collect
ts-scraper
tumblr-text
url-local
vision-camera-base64-resized
vision-camera-plugin-face-detector
vision-camera-plugin-scan-faces
vrt-cli
vue-cli-plugin-ice-builder
vue-cli-plugin-ut-builder
wa-frikz
wander-cli
warp-api
warp-server
web-yii2
wifi_configuration_package
workpad
xbuilder-forms
xl-git-up
yangtao-js
zeo-collect
zzzxxxyyy321123
The latest stable version of the package.
Stable Version
2
9.1/10
Summary
Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url
Affected Versions
< 8.1.0
Patched Versions
8.1.0
9.8/10
Summary
Server-Side Request Forgery in parse-url
Affected Versions
< 6.0.1
Patched Versions
6.0.1
1
7.5/10
Summary
Hostname confusion in parse-url
Affected Versions
< 6.0.1
Patched Versions
6.0.1
3
6.1/10
Summary
parse-url parses http URLs incorrectly, making it vulnerable to host name spoofing
Affected Versions
< 8.1.0
Patched Versions
8.1.0
6.1/10
Summary
Cross site scripting in parse-url
Affected Versions
< 6.0.1
Patched Versions
6.0.1
6.1/10
Summary
Cross site scripting in parse-url
Affected Versions
< 6.0.1
Patched Versions
6.0.1
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More