Socket
Socket
Sign inDemoInstall

@smithy/url-parser

Package Overview
Dependencies
3
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @smithy/url-parser

[![NPM version](https://img.shields.io/npm/v/@smithy/url-parser/latest.svg)](https://www.npmjs.com/package/@smithy/url-parser) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/url-parser.svg)](https://www.npmjs.com/package/@smithy/url-parser)


Version published
Weekly downloads
14M
increased by2.34%
Maintainers
2
Created
Weekly downloads
 

Package description

What is @smithy/url-parser?

@smithy/url-parser is a utility package designed to parse URLs. It is part of the Smithy framework, which is used for building SDKs for AWS services. This package provides a simple and efficient way to parse URLs into their components, such as protocol, hostname, path, query parameters, and more.

What are @smithy/url-parser's main functionalities?

Parse URL

This feature allows you to parse a URL into its components. The `parseUrl` function takes a URL string and returns an object containing the protocol, hostname, path, query parameters, and hash.

const { parseUrl } = require('@smithy/url-parser');
const url = 'https://example.com/path?name=value#hash';
const parsedUrl = parseUrl(url);
console.log(parsedUrl);

Other packages similar to @smithy/url-parser

Readme

Source

@smithy/url-parser

NPM version NPM downloads

An internal package

Usage

You probably shouldn't, at least directly.

FAQs

Last updated on 19 Oct 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc